⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 left_jsp.java

📁 类似公司动态、企业新闻、新产品发布、促销活动和行业动态等更新信息集中管理
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.sql.*;
import java.util.List;
import com.victor.domain.LinkActionForm;
import com.victor.domain.NewsTypeActionForm;

public class left_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=gb2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>左页面");
      out.write("</title>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\nbody {\r\n\tmargin-left: 0px;\r\n\tmargin-top: 0px;\r\n\tmargin-right: 0px;\r\n}\r\ntd{\r\nfont-size:9pt;\r\n}\r\n.style2 {color: #052754}\r\n-->\r\n");
      out.write("</style>");
      out.write("</head>\r\n");
      out.write("<script language=\"JavaScript\">\r\nfunction RgTest(){\r\nif(document.form.key.value==\"\"){\r\nwindow.alert(\"请输入新闻关键字:\");\r\ndocument.form.key.focus();\r\nreturn false;\r\n}\r\n\r\nif(document.form.type.value==\"\"){\r\nwindow.alert(\"请选择新闻类型:\");\r\ndocument.form.type.focus();\r\nreturn false;\r\n}\r\n\r\nreturn true;\r\n}\r\n");
      out.write("</script>\r\n");
      out.write("<body>\r\n");
      out.write("<table width=\"226\" height=\"580\"  border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td width=\"226\" height=\"122\" valign=\"top\" background=\"jsp/images/login.jpg\">\r\n\t");
      out.write("<form name=\"form\" method=\"post\" action=\"keyNewsWatch.do\" target=\"main\" onSubmit=\"return RgTest()\">\r\n ");
      out.write("<table width=\"225\" height=\"96\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n      ");
      out.write("<tr>\r\n        ");
      out.write("<td height=\"22\" >            ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n      ");
      out.write("<tr>\r\n        ");
      out.write("<td height=\"28\" colspan=\"2\" align=\"center\">");
      out.write("<span class=\"style2\">新闻关键字:");
      out.write("</span>    ");
      out.write("<input name=\"key\" type=\"text\" id=\"key\" size=\"16\"style=\"border-style:solid;border-width:1;\"onFocus=\"this.select();\"onMouseOver=\"this.style.background='#ccffff';\"onMouseOut=\"this.style.background='#ffffff'\"\" >");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n      ");
      out.write("<tr>\r\n        ");
      out.write("<td width=\"138\" align=\"center\">");
      out.write("<select name=\"type\">\r\n          ");
      out.write("<option value=\"\">请选择新闻类型");
      out.write("</option>\r\n          ");
List list1=(List)request.getAttribute("listType");
      out.write("\r\n          ");
for(int i=0;i<list1.size();i++){
NewsTypeActionForm type1=(NewsTypeActionForm)list1.get(i);

      out.write("\r\n          ");
      out.write("<option value=\"");
      out.print(type1.getTypeName());
      out.write("\">");
      out.print(type1.getTypeName());
      out.write("</option>\r\n          ");
}
      out.write("\r\n        ");
      out.write("</select>");
      out.write("</td>\r\n        ");
      out.write("<td width=\"87\" align=\"center\">");
      out.write("<input name=\"Submit\" type=\"submit\" id=\"Submit\"style=\"border:1px solid:border-color:#A4B077;padding:2px;background-color:#0099cc \" value=\"确认查询\">");
      out.write("</td>\r\n      ");
      out.write("</tr>\r\n      ");
      out.write("<tr>\r\n        ");
      out.write("<td colspan=\"2\">&nbsp;");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n    ");
      out.write("</table> \r\n");
List list=(List)request.getAttribute("link");
      out.write("\r\n\t");
      out.write("</form>\r\n\t");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td height=\"16\" align=\"center\" valign=\"middle\" bgcolor=\"#0099CC\">&nbsp;");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td height=\"84\" align=\"center\" valign=\"middle\" bgcolor=\"#eeeeee\">");
      out.write("<table width=\"142\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#052754\">\r\n      ");
      out.write("<tr>\r\n        ");
      out.write("<td width=\"136\" bgcolor=\"#FFFFFF\">");
      out.write("<div align=\"center\">");
      out.write("<a href=\"voteSelect.do\" target=\"main\">年度新闻人物");
      out.write("</a>");
      out.write("</div>");
      out.write("</td>\r\n      ");
      out.write("</tr>\r\n      ");
      out.write("<tr>\r\n        ");
      out.write("<td width=\"136\" bgcolor=\"#FFFFFF\">");
      out.write("<div align=\"center\">");
      out.write("<a href=\"voteSelectNumber.do\" target=\"main\">年度新闻人物投票数量");
      out.write("</a>");
      out.write("</div>");
      out.write("</td>\r\n      ");
      out.write("</tr>\r\n    ");
      out.write("</table>");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td height=\"16\" align=\"center\" valign=\"top\" bgcolor=\"#0099CC\">&nbsp;");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td height=\"344\" align=\"center\" valign=\"top\" bgcolor=\"#eeeeee\">");
      out.write("<br>\r\n      ");
      out.write("<br>\r\n      ");
      out.write("<table width=\"142\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#052754\">\r\n      ");
      out.write("<tr>\r\n        ");
      out.write("<td colspan=\"2\" bgcolor=\"#0099CC\">");
      out.write("<div align=\"center\">友情链接");
      out.write("</div>");
      out.write("</td>\r\n      ");
      out.write("</tr>\r\n      ");
for (int i=0;i<list.size();i++){
LinkActionForm link=(LinkActionForm)list.get(i);


      out.write("\r\n      ");
      out.write("<tr>\r\n        ");
      out.write("<td width=\"141\" bgcolor=\"#ffffff\">");
      out.write("<div align=\"center\">");
      out.write("<a href=\"../");
      out.print(link.getLinkAddress());
      out.write("\" target=\"_blank\">");
      out.print(link.getLinkName());
      out.write("</a>");
      out.write("</div>");
      out.write("</td>\r\n      ");
      out.write("</tr>\r\n      ");
}
      out.write("\r\n    ");
      out.write("</table>");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<div align=\"right\" height=\"15\">");
      out.write("</div>\r\n");
      out.write("</body>\r\n");
    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0)
        out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -