📄 project3_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 project3_0002ejsp_jsp extends HttpJspBase {
static {
}
public project3_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="/project3.jsp";from=(0,48);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/project3.jsp";from=(1,31);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/project3.jsp";from=(2,49);to=(4,0)]
out.write("\r\n\r\n");
// end
// begin [file="/project3.jsp";from=(4,2);to=(35,0)]
long page1=1;
if(request.getParameter("page1")!=null)
page1 = Long.parseLong(request.getParameter("page1").trim());
long pjid=0;
if(request.getParameter("pjid")!=null)
pjid=Long.parseLong(request.getParameter("pjid").trim());
long typeid=0;
if(request.getParameter("typeid")!=null)
typeid=Long.parseLong(request.getParameter("typeid").trim());
long count=0;
long pagemax=3;
Basic basic=new Basic();
Project pj=new Project();
Type type=new Type();
pj=basic.getProject(pjid);
type=basic.getType(typeid);
basic.freeCon();
ProjectManager projectm = new ProjectManager();
count=projectm.getPTProductListCount(pjid,typeid);//获的记录的数量
// out.print("count="+count);
Set set1=new TreeSet();
set1=projectm.getPTProductList(page1,pagemax,pjid,typeid);
projectm.freeCon();
Object[] array;
array=set1.toArray();
//out.println("set1.size="+array.length);
// end
// HTML // begin [file="/project3.jsp";from=(35,2);to=(87,98)]
out.write("\r\n\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 language=\"JavaScript\">\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\nfunction MM_popupMsg(msg) { //v1.0\r\n alert(msg);\r\n}\r\n\r\nfunction MM_openBrWindow(theURL,winName,features) { //v2.0\r\n window.open(theURL,winName,features);\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=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\r\n <tr align=\"center\" bgcolor=\"E1D1B7\">\r\n <td height=\"25\" align=\"center\" colspan=\"13\"><b><a href=\"project2.jsp?pjid=");
// end
// begin [file="/project3.jsp";from=(87,101);to=(87,119)]
out.print(pj.getProject_id());
// end
// HTML // begin [file="/project3.jsp";from=(87,121);to=(88,16)]
out.write("\">\r\n ");
// end
// begin [file="/project3.jsp";from=(88,19);to=(88,39)]
out.print(pj.getProject_name());
// end
// HTML // begin [file="/project3.jsp";from=(88,41);to=(89,43)]
out.write("</a>--\r\n <a href=\"project3.jsp?pjid=");
// end
// begin [file="/project3.jsp";from=(89,46);to=(89,64)]
out.print(pj.getProject_id());
// end
// HTML // begin [file="/project3.jsp";from=(89,66);to=(89,74)]
out.write("&typeid=");
// end
// begin [file="/project3.jsp";from=(89,77);to=(89,94)]
out.print(type.getType_id());
// end
// HTML // begin [file="/project3.jsp";from=(89,96);to=(90,0)]
out.write("\">\r\n");
// end
// begin [file="/project3.jsp";from=(90,3);to=(90,22)]
out.print(type.getType_name());
// end
// HTML // begin [file="/project3.jsp";from=(90,24);to=(97,0)]
out.write("</a></b></td>\r\n </tr>\r\n <tr bgcolor=\"F6F2E6\" align=\"center\">\r\n <td height=\"25\" width=\"15%\" align=\"left\">\r\n <p>下属产品</p>\r\n </td>\r\n <td colspan=\"2\" align=\"left\">\r\n");
// end
// begin [file="/project3.jsp";from=(97,2);to=(104,0)]
if(array!=null)
{
for(int i=0;i<array.length;i++)
{
Product pd=new Product();
pd=(Product)array[i];
// end
// HTML // begin [file="/project3.jsp";from=(104,2);to=(105,3)]
out.write("\r\n ");
// end
// begin [file="/project3.jsp";from=(105,6);to=(105,9)]
out.print(i+1);
// end
// HTML // begin [file="/project3.jsp";from=(105,11);to=(105,38)]
out.write("<a href=\"project4.jsp?pjid=");
// end
// begin [file="/project3.jsp";from=(105,41);to=(105,59)]
out.print(pj.getProject_id());
// end
// HTML // begin [file="/project3.jsp";from=(105,61);to=(105,67)]
out.write("&pdid=");
// end
// begin [file="/project3.jsp";from=(105,70);to=(105,88)]
out.print(pd.getProduct_id());
// end
// HTML // begin [file="/project3.jsp";from=(105,90);to=(106,8)]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -