Hi all! Lets say I have a form with two text fields on a jsp page:
<html:text property="project" value="${beanFromSessionScope.project}" /> <html:text property="version" value="${beanFromSessionScope.version}" /> Both text fields are validated (I use a DynaValidatorForm) and a text is required for both. If the user changes both text fields (lets say deletes project and changes version), validation fails and the user is send back to the text fields. But now the text in the field "version" shows again the ${beanFromSessionScope.version} value, and not the one previously changed by the user. A workaround: <logic:empty name="org.apache.struts.action.ERROR"> <html:text property="project" value="${beanFromSessionScope.project}" /> </logic:empty> <logic:notEmpty name="org.apache.struts.action.ERROR"> <html:text property="project" /> </logic:notEmpty> <logic:empty name="org.apache.struts.action.ERROR"> <html:text property="version" value="${beanFromSessionScope.version}" /> </logic:empty> <logic:notEmpty name="org.apache.struts.action.ERROR"> <html:text property="version" /> </logic:notEmpty> Is there a simpler way to achieve this? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]