IntelliJ Java IDE
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes what is the use of application variable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "what is the use of application variable" Watch "what is the use of application variable" New topic
Author

what is the use of application variable

rick collette
Ranch Hand

Joined: Mar 22, 2002
Posts: 208
In Marty's coreservelets book, it is said:
application variable is the ServletContext as obtained via getServletConfig().getContext().
I checked the documentation, and did not find this variable under ServletConfig. Could any1 shed some light on it? Thanks.
Goan Balchao
Ranch Hand

Joined: Mar 25, 2002
Posts: 93
Hi,
application is an implicit variable provided by the JSP container for eveyru JSP Page. It represents the javax.servlet.ServletContext object.
This implicit variable is declared and initialized automatically by the conatiner in the JSP page implementation class.
Hope this helps.


Hemant Kamat<br />SCJP2<br />SCWCD<br />SCBCD<br />SCEA-I
 
IntelliJ Java IDE
 
subject: what is the use of application variable
 
Threads others viewed
a few interview questions
How to assign a javascript variable to java varisble?
Diffenrence between application and servletConfig - servletcontext
how can i set application variable
ApplicationContext
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com