Amit,
If you are trying to handle form redisplay you may want to look at
the Turbine Sample application called Antelope at http://zebra.tigris.org/ -
this sample has a form library to do just what you describe.
Ben
> -----Original Message-----
> From: Amit V Shah [mailto:[EMAIL PROTECTED]
> Sent: 01 September 2004 14:18
> To: 'Turbine Users List'
> Subject: RE: Velocity Equivalent of HttpServlet Session
>
> Hi John,
>
> That definately helps !!! I knew I could do it using
> HttpSession but I didn't know if Velocity had like a wrapper
> around it or some kind of utility that would reflect the
> similar functionality !!!
>
> Thanks !!!!
>
> -----Original Message-----
> From: John Rae [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 9:14 AM
> To: Turbine Users List
> Subject: RE: Velocity Equivalent of HttpServlet Session
>
>
> Hiya.
> The context is lost every time the page is displayed.
> Therefore, you should only use it to store values that will
> be populating the page you are about to display. use the
> HttpSession to store values across sessions.
> good luck, hope that's some help.
> John
>
> -----Original Message-----
> From: Amit V Shah [mailto:[EMAIL PROTECTED]
> Sent: 01 September 2004 02: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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> 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.