I have an interesting problem that I'm dealing with in regards to struts 2
validation.  I have XML validation setup throughout my application that
appear to work fine.  The validation returns the appropriate error messages
when needed.  However I have a user object that is created when a person
logs into this application.  This object contains their login, business,
etc.  When any page loads the business name and login are displayed at the
top of the page.  The code snippet below shows how I'm displaying the user
information using the property tag:
        <s:property value="user.getBusiness()"/><br />
    User: <s:property value="user.getLogin()"/> </td>

However when a user is returned to that page due to an error caught by the
validation logic the "user" information is never displayed.  In my action
form the "user" object has getter and setter methods defined.  If I validate
any data in the action class and set the actionError the error message is
displayed along with the user object information.  Is there anything I
missed why the "user" object information will now show up when   XML
validation is used?  Thanks.

-- 
View this message in context: 
http://www.nabble.com/Struts-2-Validation-issue-tp15365657p15365657.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to