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
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply 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: 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....
 
IntelliJ Java IDE
 
subject: Is there any method as in context like setAttribute() in config ?
 
Threads others viewed
MockExamQuestion from HFS
Session Object
init() questions - confused
get and set Attribute for EJB Context (Storing objects)
Adding Objects to Session
developer file tools