jsp servlet页面跳转
/**
*
* @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);
}
如果您觉得不错,欢迎扫码支持下。
作者:许强1. 本博客中的文章均是个人在学习和项目开发中总结。其中难免存在不足之处 ,欢迎留言指正。 2. 本文版权归作者和博客园共有,转载时,请保留本文链接。