On Thu, September 28, 2006 10:07 am, Andy.de wrote: > Hi Wendy, > i have an action 'load object from database', on execute() the form bean > is filled with values from database. On success i want to forward to the > jsp > to > display the object. The user can change the values and submit the jsp, the > according 'save action' stores the changed object to database. This is the > typicall way to populate and fill a form bean before the according jsp is > shown. > But i don't find a way to forward to my 'load object from database' action > because > this action has no input (no jsp) and the forward attribute of <action> > wants > a jsp.
Actually, it doesn't have to be a JSP, you can forward to an action if you wish. > What i need is <forward name='success' action='load object from > data'> > instead of <forward name='success' path=/xyz.jsp> > Regards Andy Just do: <forward name="success" path="load object from data.do" /> Another option to consider is to instantiate your "load object from data" action inside your "save" action, and call execute() on it... you may also need to instantiate and populate the ActionForm it expects as well. I'd personally go that route, just to avoid the overhead of the second trip through the RP chain. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of "Practical Ajax Projects With Java Technology" (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]