• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there any method as in context like setAttribute() in config ?

 
munjal upadhyay
Ranch Hand
Posts: 69
Java Mac OS X Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to dynamic store data in context , we use setAttribute().

Is there any method to store dynamic data in config ???
 
Nitin Surana
Ranch Hand
Posts: 129
Java Netbeans IDE Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
Java jQuery Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pageScope too right?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jelo Nehuptra wrote:pageScope too right?

Only within a JSP.
 
Trieu Duong Nguyen
Greenhorn
Posts: 18
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
munjal upadhyay
Ranch Hand
Posts: 69
Java Mac OS X Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got the one ...

thanks....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic