Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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 ???
 
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
 
Ranch Hand
Posts: 36
Java jQuery Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pageScope too right?
 
Author and ninkuma
Marshal
Posts: 66352
155
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.
 
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
Boost this thread!