经典的“招标信息管理系统”JSP源代码
源代码在线查看: guanli_productadd1.jsp~2~~1~
request.setCharacterEncoding("GBK");
String name=null;
if(request.getParameter("name")!=null)
product_name=request.getParameter("name").trim() ;
long type_id=0;
if(request.getParameter("typeid")!=null)
type_id=Long.parseLong(request.getParameter("typeid").trim() );
String product_content=null;
if(request.getParameter("content")!=null)
product_content=request.getParameter("content");
long maker_id=0;
if(request.getParameter("mkid")!=null)
maker_id=Long.parseLong(request.getParameter("mkid").trim() );
Product pd=new Product();
pd.setProduct_name(product_name);
pd.setType_id(type_id);
pd.setProduct_content(product_content);
pd.setMaker_id(maker_id);
NewProduct newpd=new NewProduct();
newpd.addProduct(pd);
newpd.freeCon();
%>
guanli_productadd1
JBuilder Generated JSP