用下面的:
response.sendRedirect("/web/mail/pop3.jsp");

解决方案 »

  1.   

    不能用response.sendRedirect,因为我要用request.setAttribute
    传给jsp一个对象
      

  2.   

    也可以用serattribute啊,forward就是不改变url的。
      

  3.   

    只要你页面定向过去了。URL是否改变是没有关系的啊。你要用RequestDispatcher rd = request.getRequestDispatcher("queryresult.jsp");
    这种方式的话,URL始终肯定都是这个SERVLET的URL