You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Greg Lindholm <gl...@yahoo.com> on 2009/02/19 15:34:54 UTC

Re: How to get dropdown list value even if validation intercetor intercepts

See this FAQ item:

http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html


Rag 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
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-get-dropdown-list-value-even-if-validation-intercetor--intercepts-tp22094114p22101779.html
Sent from the Struts - User mailing list archive at Nabble.com.


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