struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Givler, Eric" <>
Subject RE: Forward to action without jsp
Date Thu, 28 Sep 2006 14:22:35 GMT
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"
   <forward name="success" path="profileEdit.jsp"/>

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: []
Sent: Thursday, September 28, 2006 10:07 AM
Subject: Re: Forward to action without jsp

Wendy Smoak-3 wrote:
> On 9/28/06, <> 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:
> For additional commands, e-mail:

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
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
But i don't find a way to forward to my 'load object from database' action
this action has no input (no jsp) and the forward attribute of <action>
a jsp. What i need is <forward name='success' action='load object from
instead of <forward name='success' path=/xyz.jsp>
Regards Andy

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message