You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by kiuma <ki...@usa.net> on 2002/09/18 19:09:21 UTC
[STRUTS] findForward problem
Hello I have the following problem
my config.xml is
<form-beans>
<form-bean name="listedUserForm"
type="com.wingstech.webappointments.ListedUserForm" />
<form-bean name="userEditForm"
type="com.wingstech.webappointments.UserEditForm" />
</form-beans>
<!-- ========== Global Forward Definitions
============================== -->
<global-forwards>
<forward name="index" path="/index.jsp" />
<forward name="SystemError" path="/error.html" />
</global-forwards>
<!-- ========== Action Mapping Definitions
============================== -->
<action-mappings>
<action name="listedUserForm" input="/secure/userlist.jsp"
path="/listedUser" type="com.wingstech.webappointments.ListedUserAction"
parameter="action" validate="true">
<forward name="Success" path="/secure/userlist.jsp"
redirect="true" />
</action>
<action name="userEditForm" input="/secure/useredit.jsp"
path="/userEdit" type="com.wingstech.webappointments.UserEditAction"
validate="true">
<forward name="Success" path="/secure/userlist.jsp"
redirect="true" />
<forward name="UserList" path="/secure/userlist.jsp"
redirect="true" />
<forward name="Failure" path="/index.jsp" redirect="true" />
<forward name="UserAppend" path="/secure/useredit.jsp"
redirect="true" />
</action>
<action name="userEditForm" input="/secure/useredit.jsp"
path="/openUserEdit"
type="com.wingstech.webappointments.OpenUserEditAction" validate="false">
<forward name="Success" path="/secure/useredit.jsp"
redirect="true" />
<forward name="Failure" path="/secure/userlist.jsp"
redirect="true" />
</action>
</action-mappings>
my execute Action is
public ActionForward append( ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse res ) throws
Exception
{
System.out.println("Going to append");
return mapping.findForward( IStrutsConstants.USER_APPEND );
}
But th problem is that my app doesn't proceed:
(http://localhost:8080/webappointments/listedUser.do)
Why?
thanks,
kiuma
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>