public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=gb2312");
HttpSession session=request.getSession();
String stuID=request.getParameter("stuID");
String stuPassword=request.getParameter("stuPassword");
Validate val=new Validate();
OperatDB stu=new OperatDB();
stu.getData();
session.setAttribute("student", stu);
if(val.loginValidate(stuID, stuPassword))
response.sendRedirect("/web/success.jsp");
else
response.sendRedirect("/web/fail.jsp");
本人刚学Java,谁能告诉我为什么这个servlet不能跳转到我指定的JSP!!
求神拜佛得感谢了!!