• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between page and request implicit objects  RSS feed

 
kesava chaitanya
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody tell me with examples the difference between page and request implicit objects;
 
Nitin Singh
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me try..
request and page are two different scopes in a JSP.
request scope variables last as long as the request object is alive and it travels along with the request (when forwarded to other pages/servlets).

page scope variables are more like instance variables for the servlet generated for a particular JSP after the translation phase. Its like using *this* in a servlet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!