实现jsp页面间的跳转publicvoiddoPost(HttpServletRequestrequest,HttpServletResponseresponse)throwsServletException,IOException{ response.setContentType("text/html;charset=gb2312"); ServletContextsc=getServletContext(); RequestDispatcherrd=null; rd=sc.getRequestDispatcher("/index.jsp");//定向的页面 rd