It's not a secret anymore!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Is there any method as in context like setAttribute()  in config ?  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 "Is there any method as in context like setAttribute()  in config ?  " Watch "Is there any method as in context like setAttribute()  in config ?  " New topic
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: 36

pageScope too right?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Jelo Nehuptra wrote:pageScope too right?

Only within a JSP.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Trieu Duong Nguyen
Greenhorn

Joined: Nov 24, 2010
Posts: 17

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....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there any method as in context like setAttribute() in config ?
 
Similar Threads
MockExamQuestion from HFS
Adding Objects to Session
get and set Attribute for EJB Context (Storing objects)
Session Object
init() questions - confused