This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Can session variables be stored in HTML

 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my case I have an HTML with some hidden fields
On click of a hyperlink I popup another jsp containing some input text fields now if i want that whtever i entered in input fields should be stored in parent HTML hidden fields
Now on click of submit button of this jsp i m storing all the values in some session
Is now it is possible in any case that these session values can be retrived in my parent HTML hidden fields
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gaurav,

I doubt,
The session variables are stored on client side.
If u use jsp instead of ur HTML page then these variables can be stored. But with html i think u can not retrieve those session variables in Html

If anybody is having the other ideas then let me know
Shashank
shashank_hiwarkar@hotmail.com
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gaurav Chikara:
In my case I have an HTML with some hidden fields
On click of a hyperlink I popup another jsp containing some input text fields now if i want that whtever i entered in input fields should be stored in parent HTML hidden fields
Now on click of submit button of this jsp i m storing all the values in some session
Is now it is possible in any case that these session values can be retrived in my parent HTML hidden fields


Let me be sure
What u want is that when a user clicks page A, Page B opens up and some data that is entered in Page B should be stored in Page A also .right !!!
Based on this assumption,my answer is that it is possible to do this using JavaScript.
Here's a statement which u can put in ur Java Script function when u click on submit.
window.opener.document.forms[0].txtToR.value = document.frmTest.txtTest.value
here txtToR is a text control on main page i.e. Page A and txtTest.value is the value on Page B.
Here window.opener keyword refers to the Parent page.
Hope this helps
Hemanth
 
Gaurav Chikara
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Hemant thnkx for the help
U r great
I wish I cud also become like u


[This message has been edited by Gaurav Chikara (edited April 02, 2001).]
reply
    Bookmark Topic Watch Topic
  • New Topic