Thanks Dave, This issue has been resolved using Preparable/prepare()

On Dec 15, 2007 8:18 PM, Dave Newton <[EMAIL PROTECTED]> wrote:

> You don't say how you initially populate the select box. In any case,
> unless
> you're populating it via Preparable/prepare() or some other automatic way
> or
> if it's not in application or session scope it won't get automatically
> re-populated when you re-visit the page.
>
> d.
>
> --- Raghuveer Rawat <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I have a getting problem in using s:select tag. Need some help if anyone
> > used s:select before.
> > This dropdown is populated dynamically. When form is loaded initially
> > dropdown is getting populated perfectly. No issue here.
> > But when we submit the form and some of the validations fail then page
> is
> > not getting displayed correctly. This is because dropdown values are not
> > coming back after the form submit. Not sure what need to be done to
> bring
> > back this dropdown values.
> > I can see below error in the log.
> >
> >  Servlet.service() for servlet jsp threw exception
> > tag 'select', field 'list', name 'user.country': The requested list key
> > 'countryList' could not be resolved as a
> > collection/array/map/enumeration/iterator type. Example: people or
> > people.{name} - [unknown location]
> >
> > Here is my jsp code for this issue:
> >
> > <s:select name="user.country" headerKey="-1" headerValue="Select
> Country"
> > cssClass="textbox1"
> >                             list="countryList" listKey="code"
> > listValue="name" required="true" />
> >
> > Pl. let me know if you need some more information.
> >
> > Thanks in advance.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to