aspose file tools
The moose likes Servlets and the fly likes How can javascript talk with sessions? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How can javascript talk with sessions?" Watch "How can javascript talk with sessions?" New topic
Author

How can javascript talk with sessions?

Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
I have to popup a window which wants some values to be displayed in its input fields from some session variables
In other words suppose I enter some values in popup page first time and second time if i want to open the same popup page i want to retrive the values stored in session variables in the same pop up page for editing?
for me it seems totally unfeasibla and impossible to me as how can a javascript retrive a session variable
forget JSP's i m using a simple HTML?
Moderators will you throw some light on it?


SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6913
The only way you can access a session variable in any sort of browser window is to generate the window contents dynamically on the server each time it is requested, and build it to contain the correct data from the session. Once some HTML is built it is essentially static and cannot access any server-side data.


A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
 
 
subject: How can javascript talk with sessions?
 
Threads others viewed
URGENT Help Needed ...!!
Can session variables be stored in HTML
sending values to java script
to print the value from a javascript function
How to update Session variable with Form Data ?
IntelliJ Java IDE