You are probably looking for ParameterAware

http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/ParameterAware.html


On Wed, Apr 28, 2010 at 12:47 PM, Mitch Claborn <mi...@claborn.net> wrote:
> I'm sure I've seen the answer to this somewhere, but darned if I can find it
> now when I need it!
>
> I have a page that allows edits of various options, the names of which are
> dynamically retrieved from the database.  If I have the code in the JSP as
> below, the value displayed in the text field is always that from the
> database.  If there is a validation error, the user's input value is not
> maintained as it would be if there were an explicit getter/setter for each
> option name.  Is there a way to code the Action (or the JSP) so that the
> value shown is the user's input value if there is an error?
>
>         <s:iterator value="authorizedOptions" id="o">
>                 <s:textfield size="10" name="${o.optionName}"
> id="${o.optionName}" value="${o.valueInt}" />
>
> Mitch
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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

Reply via email to