Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use application.getAttribute in Java class

843840Jul 1 2008 — edited Jul 1 2008

Hi Forum,



Many Applications are using the API "application.getAttribute". we can set an attribute in application and can get it throughout the application. But this can be done only in JSP.



Is there any way to use the application attribute somewhere in java classes? or is there any other alternate or any other APIs regarding the same?



Please help me as I am running out of time and totally helpless.


can ServletContext be used in this scenario?



Thanks
Nitin

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2008
Added on Jul 1 2008
1 comment
581 views