I'm not sure I understand what's wrong with this: 1. The load object from database is in the action's execute. <action path="/prepareProfileEditScreen" type="struts.actions.prepareProfileAction" name="struts.forms.profileFormBean"> <forward name="success" path="profileEdit.jsp"/> </action>
2. The menu choice is: Edit My Profile (for example), which invokes the action from #1 public ActionForward execute( <signature> ) throws ... { String userId = request.getParameter("userId"); UserProfile up = service.getProfile( userId ); BeanUtils.copyProperties( form, up ); return "success"; } 3. The user ends up on the profileEdit.jsp page with the data filled into the form bean. -----Original Message----- From: Andy.de [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 10:07 AM To: user@struts.apache.org Subject: Re: Forward to action without jsp Wendy Smoak-3 wrote: > > On 9/28/06, Andy.de <[EMAIL PROTECTED]> wrote: > >> how can i forward to an action without input (jsp) ? > > I'm not sure what you're asking. What do you want the user to be able to > do? > > In general, any URL that maps to an Action will execute the action, > whether or not there is any 'input' (request parameters from the form > having been submitted, or in the URL itself.) > > -- > Wendy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > 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. What i need is <forward name='success' action='load object from data'> instead of <forward name='success' path=/xyz.jsp> Regards Andy -- View this message in context: http://www.nabble.com/Forward-to-action-without-jsp-tf2350751.html#a6547071 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]