Storing Data for Later Use:
The Servlet Context
Purpose
Storing data that servlet looked up and that JSP page will 
use in this request and in later requests from any client.
Servlet syntax to store data
SomeClass value = new SomeClass( );
getServletContext().setAttribute("key", value);
// Use RequestDispatcher to forward to JSP page
JSP syntax to retrieve data
id="key" 
class="SomeClass"
scope="application"
/>
111
JSP
www.corewebprogramming.com
An On Line Travel Agent
112
JSP
www.corewebprogramming.com
56




  

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