jsp数据库系统
源代码在线查看: guanli_projectadd1.jsp~8~~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=null;
if(request.getParameter("cost")!=null)
cost=request.getParameter("cost").trim();
String content=null;
if(request.getParameter("content")!=null)
content=request.getParameter("content").trim();
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_projectadd1
< p align="center">添加项目成功 返回