struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jouravlev <jmi...@gmail.com>
Subject Re: Retaining dropdown value??
Date Tue, 29 Nov 2005 23:47:21 GMT
Instead of using default value use current value. When the page is
initialized for the first time, set current value to default value.
After a user selects value from the list, submit current value back to
the form. You will reuse it when you display the page again.

Michael.

On 11/29/05, Kanuri, Chand <chand.kanuri@landg.com> wrote:
> yeah i gave session scope to all of my forms in action mappings in my struts
> config.
>
> some are populated where as the problem is with the drop downs which are
> pointing to default first vale not the one already picked earlier.
>
> any idea?
> -----Original Message-----
> From: Stephen Hartley [mailto:stephenhartleyjunk@yahoo.co.uk]
> Sent: 29 November 2005 15:02
> To: Struts Users Mailing List
> Subject: Re: Retaining dropdown value??
>
>
> have you tried giving your form bean session scope?
> (See documentation for action mapping in
> struts-config)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message