jsp servlet页面跳转
时间:2011-04-02 来源:qiang.xu
/**
*
* @param address
* @param request
* @param response
* @throws ServletException
* @throws IOException
*/
private void gotoPage(String address, HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
System.out.println("address = " + address);
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(address);
dispatcher.forward(request, response);
}
相关阅读 更多 +