[Webwork-user] Putting things in the session
Brought to you by:
baldree,
rickardoberg
From: Peter K. <pe...@mo...> - 2002-06-13 09:03:33
|
This could be an answer in some sort of FAQ: How do I take an int from the item on top of the value stack and put it in the user's session to be retrieved later ? The problem I'm trying to solve is getting values from a number of controls in a list which all have different names. I can get the values using the map but I need to know what they are called. I have used a name stem and a numeric suffix for each control hence the need to know the number of controls present. I guess I could use a hidden field on the JSP but this seems wrong somehow. Putting the value in the session before displaying the JSP leads to complications when the users play around with the back button on the browser or direct URL references. Any ideas ? -- regards, Peter Kelley MoveIt Pty Ltd "If you want to build a ship, don't drum up the men to gather wood, divide the work and give orders. Instead, teach them to yearn for the vast and endless sea." - Saint-Exupery |