struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From taltun <>
Subject Prevent persisting data when validation fails
Date Mon, 20 Jul 2009 09:42:20 GMT

When submitting a form using manual validation in my action. Even when the
validation fails and the action method supposed to be called is not called
at all, the dirty data is persisted ?

How can I prevent data from being persisted if the validation fails ?

Note:  I use prepare method to load e.g an user object from a
manager/service. And the data relates to the user object that is about. 

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message