JSP Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
JSP Tutorial
Introduction Introduction
Installing JDK-Windows Installing JDK-Windows
Installing JDK-Linux Installing JDK-Linux
Installing Tomcat Installing Tomcat
Simple Program in JSP Simple Program in JSP
Pre-defined Variables Pre-defined Variables
Syntax of Tags Syntax of Tags
JSP Expression Language JSP Expression Language
JSP EL Operators JSP EL Operators
EL Implicit Variables EL Implicit Variables
Scopes Scopes
Using Arrays Using Arrays
Methods Methods
JSP Elements JSP Elements
Including Beans Including Beans
JSTL Tags JSTL Tags
Custom Tags Custom Tags
Session Session in JSP
Handling Cookies Handling Cookies
JSP Application Structure JSP Application Structure
Configuring web.xml Configuring web.xml
Tomcat Configuration Tomcat Configuration
JSP Examples JSP Examples
Forums Ask Your Doubts
Feedback Feedback
 






outsourced web hosting support

Predefined Variables in JSP


Tutorials Jsp

Topic

What are the Predefined Variables available in Java Servlet Pages?


Explanation

To make things simple, there are some predefined variables in JSP that need not be declared. These variables can be used with servlets and Java beans. Following are the list of predefined variables.

request:

This variable specifies the data included in a http request. This variable takes value from the clients' browser to pass it over to the server.

reponse:

This variable specifies the data included in the http response. It is used with cookies and also in http headers.

out:

This variable specifies the output stream otherwise known as printwriter in a page context.

session:

This variable specifies the data associated with httpsession object with a specific session of a user. The main purpose of this object is to use the session information to maintain multiple page requests.

application:

This variable is used to share data with all application pages.

Config:

This variable refers the java servlet configuration value.

pagecontext:

This variable is used to store the environment for the page like page attributes, access to the request, response and session objects.

page:

This variable is used to store the instance of the generated java servlet.




A Note
JSP(Java Server Pages) is one of the most used Server Side Programming Language in the world. Simple introduction, basic program codes with examples. Begin coding your own JSP scripts with this online tutorial. Hope you enjoy this tutorial. Do send your feedback or suggestions on this JavaServer Pages tutorial. This is a copyright content.


Other Links

web hosting