File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes scope related question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "scope related question" Watch "scope related question" New topic
Author

scope related question

Deepinder S Narang
Greenhorn

Joined: Sep 05, 2006
Posts: 21
Hello

It is mentioned that when the attributes are not found in pageScope then they are looked for in request and then session and then application.

But what if i have mentioned the scope=session and it doesnt get the attribute there ......... will it start searching from page or will search in only applicationscope as only that thing comes after session scope in the hierarchy .... ?
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

I am not sure about this, but i think if you are going to mislead the container, it will not like it
So, if you say that its in the session scope, it better be there !!!


apigee, a better way to API!
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

If you explicitly tell in which scope to look for, the container won't look anywhere else.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: scope related question
 
Similar Threads
Display messages from controller on top of JSP page
SessionSynchronization ?? is HJEJB Wrong or i am lost......
Initialising request scoped bean
Can you prevent another thread from modifying a collection while you iterate over it in EL?
how to keep multi node application scope data in sync?