用Java开发的购物车程序!
源代码在线查看: reg_ok.jsp
reg.setUsername(request.getParameter("username"));
reg.setPassword(request.getParameter("password1"));
reg.setEmail(request.getParameter("email"));
//PrintWriter dd=new PrintWriter(new FileOutputStream("c:\\dd.dat"));
//dd.print(request.getParameter("username"));
//dd.print(' ');
//dd.print(request.getParameter("password1"));
//dd.print(' ');
//dd.print(request.getParameter("email"));
//dd.close();
flag=reg.regInfo();
if(!flag)
{
response.sendRedirect("error.jsp?errmsg=这个用户名已被使用,请换个名字试试");
return;
}
else
{
session.setAttribute("username",username);
}
%>