在servlet的doPost()中写:
this.getServletConfig().getServletContext().getRequestDispatcher
(anotherjsp).forward(request,response);
request,response是doPost()的参数,会带给你要去的jsp页面
anotherjsp是你要去的jsp页面,以/开头,这个/不是指http://hostname/,而是根据你在服务器配置中的context而定。例如在tomcat 3.2的server.xml里,如果你添加了一个context,path="/yourapp",则这个/就表示http://hostname/yourapp/