jQuery in Action, 2nd edition
The moose likes JSP and the fly likes Accessing Web Session variable in a Java class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Accessing Web Session variable in a Java class" Watch "Accessing Web Session variable in a Java class" New topic
Author

Accessing Web Session variable in a Java class

Phanidhar Kandala
Greenhorn

Joined: Jun 05, 2009
Posts: 9
Hi,

I want to know if there is a way to use session.getAttribute("string") in a java class.

Actually that java class makes an xml message from the information entered on the online web application and sends to another coldfusion application. I have to add one more element that exists in one of the jsp pages to that xml message.

For this, i am trying to make that value available at session level and want to pull it from the session while making the xml message in the java class.

Is this possible? If not can anyone suggest me how i can incorporate that value ( like some orderID ) which is available in one of the jsp pages in the xml message?

Thanks,
Phani
 
 
subject: Accessing Web Session variable in a Java class
 
Two Laptop Bag