jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Page Scope useBean 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 "Page Scope useBean" Watch "Page Scope useBean" New topic

Page Scope useBean

Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
Can someone describe what the pageScope in useBean essentially mean.
I know that if gives the method findinscope(attribute) method which might come in handy.

Apart from that is there any useful purpose for the pageScope.
Sergey Tyulkin
Ranch Hand

Joined: May 10, 2005
Posts: 87
Imagine you have 2 JSPs. And first includes the second. Then, if they both define a variable with the same name, and put it in request scope, then the first page will receive value from the second page (and this behaviour may be wrong). But if the use page scope, then they will have different variables.
You can think about page scope variable as private variables in ordinal class. Only this page will have an access to them
Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
Thanx for the explaination on this. This absolutely is required.
A rare situation to happen, but practically it should be handled through pageScope.
I agree. Here's the link: http://aspose.com/file-tools
subject: Page Scope useBean
It's not a secret anymore!