| Author |
Is there any method as in context like setAttribute() in config ?
|
munjal upadhyay
Ranch Hand
Joined: Sep 18, 2010
Posts: 69
|
|
to dynamic store data in context , we use setAttribute().
Is there any method to store dynamic data in config ???
|
 |
Nitin Surana
Ranch Hand
Joined: Jan 21, 2011
Posts: 129
|
|
There are only 3 areas in which dynamic data can be stored - Request, Session and Application (context).
No such method like setAttrib(..) exists in config. Config. provides means to reach the application context and access the initial parameters as specified in web.xml
|
 |
Jelo Nehuptra
Ranch Hand
Joined: Oct 08, 2011
Posts: 35
|
|
|
pageScope too right?
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50691
|
|
Jelo Nehuptra wrote:pageScope too right?
Only within a JSP.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Trieu Duong Nguyen
Greenhorn
Joined: Nov 24, 2010
Posts: 3
|
|
Hi !
All of param can only Read, including: Request Parameter, ServletConfig Parameter, ServletContext Parameter, Filter Parameter
All of Attribute can ADD, REPLACE, REMOVE: Request, Session and Application (context) Scope in Servlet
plus page scope only in JSP.
|
Trieu Duong Nguyen
SCJP 6 | SCWCD 6
|
 |
munjal upadhyay
Ranch Hand
Joined: Sep 18, 2010
Posts: 69
|
|
got the one ...
thanks....
|
 |
 |
|
|
subject: Is there any method as in context like setAttribute() in config ?
|
|
|