Nope the context is lost each request.... You can get the httpsession from the rundata... data.getRequest().getSession()
mike -----Original Message----- From: Amit V Shah [mailto:[EMAIL PROTECTED] Sent: 01 September 2004 14:07 To: '[EMAIL PROTECTED]' Subject: Velocity Equivalent of HttpServlet Session Hi all, I want to know if the Velocity - Context is the equivalent of HttpServlet Session. The reason is, I have a very typical scenerio where I have three dropdowns on a page. Once user selects first one, I submit the form with javaScript and load the second drop down based on the selection. Once user selects something from second dropdown, I submit the form, and in my Velocity Action, I load the third drop down. Right now, I have code that does that in the Velocity Action, and puts the dropdown list in context, as well as the selection in context (because I want the selection to be retained on all three drop downs even after form submissions). But this works only for one submission of form. For example, when I submit first dropdown change, the selection on first drop down is retained, but once I submit the second dropdown, the context doesnot have the key for first dropdown selection anymore. In HttpServlet I would just put the selection in the session and it would be available for me across different form submissions and pages. Please pardon if my question is stupid because I am pretty new to Velocity and Turbine framework. Can someone help please !!!!!! Thanks, Amit --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Scanned for viruses by MessageLabs Scanned for viruses by MessageLabs. The integrity and security of this message cannot be guaranteed. This email is intended for the named recipient only, and may contain confidential information and proprietary material. Any unauthorised use or disclosure is prohibited.