• Post Reply Bookmark Topic Watch Topic
  • New Topic

page scope vs servlets  RSS feed

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

JSP specification says that every jsp page get translated into servelt before giving the out-put, and it does.

But here my question is, there is noting called page scope in servlets but jsp does have it. When jsp becomes servlet how does it recognise and handles it.

regards,
rahul
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most containers keep the generated servlet source code around for you to view.
In Tomcat, this is kept under the tomcat/work/Catalina/localhost directory.

This would be a good learning exercise for you.
Make a JSP and bind some objects to the scope in question, then run it and go look at the generated servlet code.

Let us know what you find.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!