Struts Action vs DispatchAction
Posted on 2003-11-03
I have a piece of code, and I'll post it if necessary, but I suspect this is a known issue.
Works great if I use an Action class that has an execute() method.
I refactored it so that instead it uses a DispatchAction method. I pass in a parameter that tells it to call a save() method in it.
It works, EXCEPT:
If the validate() method of the ActionForm fails, I still get sent back to the jsp page (because of an input= line in the action mapping) BUT the user's input is gone, and the html:error tags telling the user what he did wrong don't show anything.
Is there something broken about DispatchAction???