jsp数据库开发实例精粹全书原代码
无解压缩密码
包括 书店
源代码在线查看: guanli_projectadd1.jsp~13~~1~
request.setCharacterEncoding("GBK");
String name=null;
if(request.getParameter("name")!=null)
name=request.getParameter("name").trim();
String time="1700-00-00~1700-00-00";
if(request.getParameter("time")!=null)
time=request.getParameter("time").trim();
String company=null;
if(request.getParameter("company")!=null)
company=request.getParameter("company").trim();
String cost="0.00";
if(request.getParameter("cost")!=null)
cost=request.getParameter("cost").trim();
String content=null;
if(request.getParameter("content")!=null)
content=request.getParameter("content");
NewProject newpj=new NewProject();
Project pj=new Project();
pj.setProject_name(name);
pj.setProject_company(company);
pj.setProject_cost(cost);
pj.setProject_time(time);
pj.setProject_content(content);
newpj.addProject(pj);
newpj.freeCon();
%>
guanli_projectadd
function closewin()
{
window.opener.location.reload();
window.close();
}
添加项目成功!关闭本窗口