| Author |
PageContext - Does it "actually" exists?
|
Atul Sawant
Ranch Hand
Joined: Jul 06, 2006
Posts: 304
|
|
Oi! Could someone please explain me the below given statement....
Technically, pageContext can also store attributes in any scope using setAttribute(name, object, scope) method. But the objects thus stored are actually not stored in pageContext. pageContext just provides a convenient method to store the objects in actual scopes such as application, session.
So, which is default scope is considered to set an attribute using a PageContext.setAttribute(String name) method? Thanks for your answers!
|
Mission SCWCD. Mission SCJP Complete: SCJP 1.4 - 91%
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14670
|
|
|
You mean setAttribute(String name,Object value) ? It's page scope.
|
[My Blog]
All roads lead to JavaRanch
|
 |
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Joined: Aug 26, 2006
Posts: 4967
|
|
Well, I guess it's just saying that if you use a method in the pageContext to store something in the HttpSession, it gets stored in the HttpSession, not the pageContext. Just trying to explain some of the helper methods in the pageContext. -Cameron
|
Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
|
 |
Atul Sawant
Ranch Hand
Joined: Jul 06, 2006
Posts: 304
|
|
@Satou - hello there...hope you doing fine. I meant for PageContext.setAttribute(String name). @Cameron - I guess you meant for a method which is something like this... PageContext.setAttribute("person", person, Session_Scope), correct?
|
 |
 |
|
|
subject: PageContext - Does it "actually" exists?
|
|
|