My guess is you are not populating the list in the prepare() method of
the action.

After validation error, prepare() of Preparable classes is called so
the lists are repopulated.


Felipe

On Thu, Feb 19, 2009 at 5:07 AM, sheva j <shee...@gmail.com> wrote:
> Hi,
> I am using struts 2.0.11. I am using <s:select> tag, struts is populating
> the list box correctly for all the time, except when the validation error
> occurs for any other field.
>
> My issue is:
>
> When I first enter into the page, I am able to get the dropdown value,
>
> When I submit the page with out entering some mandatory fields, the list box
> is cleared,
>
> Once I enter all the mandatory fields and submit the page, I can able to get
> the values in list box.(but now it is not showing the selected value in
> dropdown, instead it is showing 'Please select') .
>
> I want the list box to be populated even if validation error occurs....
>
> Kindly help me....
>
> Thanks in advance.....
>
> Thanks,
> Sheeva
>

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

Reply via email to