Forwarding Requests: 
Example Code (Continued)
private void gotoPage(String address,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher(address);
dispatcher.forward(request, response);
}
107
JSP
www.corewebprogramming.com
Reminder: JSP useBean 
Scope Alternatives
request
scope="request"
/>
session
scope="session"
/>
application
scope="application"
/>
page
scope="page"
/>  
or just
This scope is not used in MVC architecture
108
JSP
www.corewebprogramming.com
54




  

Home

About Services Network Support FAQ Order Contact
 

Java Web Hosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved