You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Abhinav (Cognizant)" <Ab...@cal.cognizant.com> on 2003/06/25 16:44:26 UTC
Using modules and actionforward to an action
For logging out I use this piece of code :
RequestUtils.selectModule("", req,
getServlet().getServletContext());
return (new ActionForward("/AuthFail.jsp"));
I don't want to hardcode "/AuthFail.jsp"
instead of that i want to forward to an action "/logout" defined in the default servlet-config.xml
I tried this
return (new ActionForward("/logout"));
and in the servlet-config.xml
<action
path="/logout"
type="actions.LoginAction"
---
---
>
</action>
but no success.
Suggestions ... !!!!