校友录管理系统。校友进行注册
源代码在线查看: adduser_do.jsp
try{
String year=request.getParameter("year");
String month=request.getParameter("month");
String day=request.getParameter("day");
if(year==null)
year="";
if(month==null)
month="";
if(day==null)
day="";
String birth=year+"年"+month+"月"+day+"日";
user.setBirthday(birth);
if(Trans.trans(user.getRealname())==null){
return ;
}
user.setRealname(Trans.trans(user.getRealname()));
user.setSex(Trans.trans(user.getSex()));
String result=add.addUser(user);
if(result.equals("ok")){
out.println("成功添加用户"+user.getRealname()+"到校友库");
out.println("继续添加校友");
out.println("返回");
}
}
catch(Exception e){
out.println(e.toString());
}
%>