The most intelligent Java IDE
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSP
 
RSS feed
 
New topic
Author

Accessing Web Session variable in a Java class

Phanidhar Kandala
Greenhorn

Joined: Jun 05, 2009
Messages: 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
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSP
 
RSS feed
 
New topic
replay challenge