jsp数据库开发实例精粹全书原代码
无解压缩密码
包括 书店
源代码在线查看: guanli_projectupdate1.jsp~6~
request.setCharacterEncoding("GBK");
long pjid=0;
if(request.getParameter("pjid")!=null)
pjid=Long.parseLong(request.getParameter("pjid").trim());
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=null;
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_id(pjid);
pj.setProject_name(name);
pj.setProject_company(company);
pj.setProject_cost(cost);
pj.setProject_time(time);
pj.setProject_content(content);
newpj.updateProject(pj);
newpj.freeCon();
%>
guanli_makerupdate
function closewin()
{
window.opener.location.reload();
window.close();
}
修改项目成功!关闭本窗口