> If key tasks needs to be completed in each Action's perform() > method, a good > approach is to create a new abstract methods for your > subclasses to use in > lieu of perform(). The base Action class does its business, > and if all is > well, then returns the result of the new method. This allows > you to change > the signature of your new method, if there is ever any reason > for that, and > provides a cleaner flow. > > public ActionForward perform(ActionMapping mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) > throws IOException, ServletException { > > // Application specific behaviour > // if everything is kosher call subclass > > return ( performAction(mapping,form,request,response, > myParameter )
yes indeed, this will be cleaner and better then my solution. However I am still stuck with the submit to different actions aspect, for which I used the general controller. (Quoting myself, finally I got quoted ;) > However on the detail screens there are links to other detail > screens. These > are simple links like <a > href=javascipt:goSubmit('showFirstDetailsScreen')> > ... <a href=javascipt:goSubmit('showSecondeDetailsScreen')> > etc etc. (where > goSubmit is a javascript function that will fill the navigate > field with the > given value and then submit the form). If I want a action for > every form how > should I set this so that showFirstDetailsScreen will go to the right > action, without using multiple forms (since this really > screws up the html > lay-out) Gr Ronald Furore B.V. Rijswijkstraat 175-8 Postbus 9204 1006 AE Amsterdam tel. (020) 346 71 71 fax. (020) 346 71 77 ---------------------------------------------------------------------------- --------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer ---------------------------------------------------------------------------- ---------------