struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burton Rhodes" <>
Subject Re: [S2] Handling input result on a CRUD action
Date Sat, 29 Nov 2008 22:59:07 GMT
Just a thought but why don't put a redirect acrtion in your result
'input' on your update action. That way if it fails it will run

On 11/29/08, Adam Ruggles <> wrote:
> I have a problem I'm trying to solve when the validation fails on a crud
> action.  This action has add/create, edit/update, and list methods that all
> get called correctly.  Now when the validation fails I have a list of items
> that I need loaded.  Right now I have a prepareEdit and prepareAdd methods
> that load this list on the initial load.  However when the validation fails,
> for example on an update it calls the prepareUpdate.  I obviously do not
> want to load the list on an update if the validation passes.
> My question is, are there any good solutions to handle this?  Right now I'm
> thinking either to detect the input result name in the prepareUpdate or
> build an interceptor to handle this.  Anyone else run into this issue and
> find a good solution?
> --
> View this message in context:
> Sent from the Struts - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Sent from my mobile device

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

View raw message