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);
   }

posted @ 2011-04-02 20:07  qiang.xu  阅读(503)  评论(0编辑  收藏  举报