This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doubt in page scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doubt in page scope" Watch "doubt in page scope" New topic
Author

doubt in page scope

V Gala
Ranch Hand

Joined: Aug 06, 2007
Posts: 113
what actually do we mean by page scope
can attribute set in one jsp at page scope be access by another jsp?
Pedro Erencia
Ranch Hand

Joined: Apr 03, 2008
Posts: 70
It depends.
A page is a translation unit ( a servlet ) and the page scope is related only about that unit. Only If you do a static import of a jsp you can access page scope attributes in the imported jsp, but not if you use forward or include since there would be different servlets.
I guess page Scope is primarily used to share attributes between tags and jsp..
Nitin Kasat
Greenhorn

Joined: Apr 07, 2008
Posts: 13
I think attributes set in one jsp page cannot be accessed in other jsp page because we are setting them for page scope.


SCJP 5.0, SCWCD 5.0, SCBCD 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doubt in page scope