• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the use of application variable

 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic