My app has a bunch of wizard-style forms. I have one "NextPageAction" Action class, and an separate mapping for each page. The mappings all bind to the same form bean (a DynaValidatorForm) and invoke the "NextPageAction".


I was hoping to have only one action mapping, with a whole bunch of forwards for "page1", "page2", etc. The problem that prevents me from having one action mapping is validation: I need the "input" attribute to redirect me to the correct wizard screen.

So I went back to having lots of mappings. No big deal. Until...

I factored the "next" and "back" buttons into the template. With those buttons, wend the closing "html:form" tag. Makes sense to move the opening "html:form" tag into the template, too, right? Oops, my action is in there.

What do I do?

I could leave the closing tag in the template and the opening tag in the inserted body. Gross.

I could try and pass the action into the template through my tiles-defs. That's kinda kludgy, too.

I'm back to thinking I should have one action mapping. But I don't know how to accomplish this.

Suggestions?

Thanks,

Mike



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



Reply via email to