📄 project2_0002ejsp_jsp.java
字号:
import java.util.*;
import zhaobiao.db.*;
import zhaobiao.data.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class project2_0002ejsp_jsp extends HttpJspBase {
static {
}
public project2_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/project2.jsp";from=(0,48);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/project2.jsp";from=(1,31);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/project2.jsp";from=(2,49);to=(3,0)]
out.write("\r\n");
// end
// begin [file="/project2.jsp";from=(3,2);to=(23,0)]
;
ProjectManager projectm=new ProjectManager();
long pjid=0;
if(request.getParameter("pjid")!=null)
{
try{
pjid=Long.parseLong(request.getParameter("pjid"));
}catch(Exception ex)
{
ex.printStackTrace();
}
}
Vector list=new Vector();
list=projectm.getProjectTypeList(pjid);
projectm.freeCon();
Project pj=new Project();
Basic basic=new Basic();
pj=basic.getProject(pjid);
basic.freeCon();
// end
// HTML // begin [file="/project2.jsp";from=(23,2);to=(67,82)]
out.write("\r\n<html>\r\n<head>\r\n<title>xxx</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\r\n<script>\r\n <!--\r\n function checknull()\r\n {\r\n\r\n var a=document.form1.keys.value;\r\n if(a==\"\")\r\n {\r\n alert(\"关键字不能为空!\");\r\n return false;\r\n }\r\n else\r\n return true;\r\n\r\n}\r\n\r\n//--></script>\r\n</head>\r\n<body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n<center>\r\n<table width=\"776\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"103\">\r\n\r\n <tr>\r\n <td height=\"65\"> <a href=\"index.jsp\"><img src=\"images/zhaobiao_01.jpg\" width=\"777\" height=\"89\" align=\"absbottom\" border=\"0\"></a></td>\r\n </tr>\r\n </table>\r\n <a href=\"product1.jsp\">产品信息</a> <a href=\"project1.jsp\">项目信息</a> <a href=\"maker1.jsp\">厂商信息</a><br>\r\n<table width=\"774\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td colspan=\"2\" align=\"center\">\r\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n <tr bgcolor=\"0092B8\">\r\n <td>\r\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\">\r\n <tr align=\"center\">\r\n <td>\r\n <table width=\"766\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\r\n <tr align=\"center\" bgcolor=\"E1D1B7\">\r\n <td height=\"25\" align=\"center\" colspan=\"2\" width=\"760\"><b>");
// end
// begin [file="/project2.jsp";from=(67,85);to=(67,105)]
out.print(pj.getProject_name());
// end
// HTML // begin [file="/project2.jsp";from=(67,107);to=(71,58)]
out.write("信息</b></td>\r\n </tr>\r\n <tr bgcolor=\"F6F2E6\">\r\n <td height=\"25\" align=\"center\" width=\"130\"> 项目内容:</td>\r\n <td align=\"left\" width=\"626\">项目时间:");
// end
// begin [file="/project2.jsp";from=(71,60);to=(71,124)]
if(pj.getProject_time()!=null)out.println(pj.getProject_time());
// end
// HTML // begin [file="/project2.jsp";from=(71,126);to=(72,33)]
out.write("<br>\r\n 项目负责单位:");
// end
// begin [file="/project2.jsp";from=(72,35);to=(72,105)]
if(pj.getProject_company()!=null)out.println(pj.getProject_company());
// end
// HTML // begin [file="/project2.jsp";from=(72,107);to=(73,32)]
out.write("<br>\r\n 项目总造价:");
// end
// begin [file="/project2.jsp";from=(73,34);to=(73,98)]
if(pj.getProject_cost()!=null)out.println(pj.getProject_cost());
// end
// HTML // begin [file="/project2.jsp";from=(73,100);to=(74,31)]
out.write("<br>\r\n 项目简介:");
// end
// begin [file="/project2.jsp";from=(74,33);to=(74,117)]
if(pj.getProject_content()!=null)out.println(basic.cnvtBr(pj.getProject_content()));
// end
// HTML // begin [file="/project2.jsp";from=(74,119);to=(81,1)]
out.write("</td>\r\n </tr>\r\n <tr bgcolor=\"F6F2E6\" align=\"center\">\r\n <td height=\"25\" width=\"130\" align=\"center\">\r\n <p>下属类别</p>\r\n </td>\r\n <td align=\"left\" width=\"626\">\r\n ");
// end
// begin [file="/project2.jsp";from=(81,3);to=(88,0)]
if(list!=null){
for(int i=0;i<list.size();i++)
{
Type type=new Type();
type=(Type)list.elementAt(i);
// end
// HTML // begin [file="/project2.jsp";from=(88,2);to=(89,22)]
out.write("\r\n ");
// end
// begin [file="/project2.jsp";from=(89,25);to=(89,28)]
out.print(i+1);
// end
// HTML // begin [file="/project2.jsp";from=(89,30);to=(89,58)]
out.write(".<a href=\"project3.jsp?pjid=");
// end
// begin [file="/project2.jsp";from=(89,61);to=(89,65)]
out.print(pjid);
// end
// HTML // begin [file="/project2.jsp";from=(89,67);to=(89,75)]
out.write("&typeid=");
// end
// begin [file="/project2.jsp";from=(89,78);to=(89,95)]
out.print(type.getType_id());
// end
// HTML // begin [file="/project2.jsp";from=(89,97);to=(90,25)]
out.write("\">\r\n ");
// end
// begin [file="/project2.jsp";from=(90,28);to=(90,47)]
out.print(type.getType_name());
// end
// HTML // begin [file="/project2.jsp";from=(90,49);to=(92,26)]
out.write("</a><br>\r\n <br>\r\n ");
// end
// begin [file="/project2.jsp";from=(92,28);to=(92,30)]
}}
// end
// HTML // begin [file="/project2.jsp";from=(92,32);to=(124,0)]
out.write("\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr align=\"right\">\r\n <td colspan=\"2\"><a href=\"#\" onClick=\"MM_openBrWindow('send_pop.shtml','','width=300,height=250')\"><br>\r\n <br>\r\n </a> </td>\r\n </tr>\r\n</table>\r\n <form name=\"form1\" method=\"POST\" action=\"search1.jsp\" onsubmit=\"return checknull()\">\r\n 关键字:\r\n <input type=\"text\" name=\"keys\">\r\n <select name=\"searchid\">\r\n <option selected value=0>所有</option>\r\n <option value=1>项目</option>\r\n <option value=2>厂商</option>\r\n <option value=3>产品</option>\r\n </select>\r\n <input type=\"submit\" name=\"submit\" value=\"搜索\">\r\n</form>\r\n<p> </p>\r\n</center>\r\n</body>\r\n</html>\r\n");
// end
} catch (Throwable t) {
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 + -