oops! return mapping.findForward("success");
-----Original Message-----
From: Givler, Eric [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 28, 2006 10:23 AM
To: Struts Users Mailing List
Subject: RE: Forward to action without jsp
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]