On 7/12/06, mosho <[EMAIL PROTECTED]> wrote:
I am using struts for my application. I have 3 buttons in my form i.e prev,next,clear. I read few articles and found that Lookup dispatch action will be the best option to use.
There's a *much* better option in EventDispatchAction. It's available in Struts 1.2.9 http://struts.apache.org/1.2.9/api/org/apache/struts/actions/EventDispatchAction.html
I have few concerns using lookupdispatch action, 1. Will I be able to validate using struts validator? 2. I need to validate only when next button is hit, is that possible?
Yes, Validator works fine with dispatch actions. For 2, take a look at this tutorial on calling validation manually: http://www.learntechnology.net/validate-manually.do It sounds like you have a wizard-type form, so you can make use of the <field> 'page' attribute in validation.xml to validate the fields on all pages up to the current one. -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]