Are you running this in a portlet container? Your index.jsp and the
redirect url does not make sense i a portal server (unless you are
embedding it in some way....)? Please provide some more information.

Nils-H

On Jan 15, 2008 6:38 PM, Brian Relph <[EMAIL PROTECTED]> wrote:
> I am having trouble getting a redirectAction to work.  I am using
> struts2-portlet-plugin-2.1.1-SNAPSHOT, i have also tried using
> struts-2.0.11with no luck.  Any advice?  Here are my configs:
>
> WEB-INF/index.jsp
> ----------------------------
> <%
> String redirectURL = "view/index.action";
> response.sendRedirect(redirectURL);
> %>
>
>
> struts.xml
> ---------------
> <struts>
>
> <include file="struts-portlet-default.xml" />
>
> <package name="default" extends="struts-portlet-default" namespace="/view">
>
>   <action name="index" class="
> com.health.management.vitals.action.IndexAction">
>     <result name="advisor" type="redirectAction">
>       <param name="actionName">advisorView</param>
>     </result>
>     <result name="consumer" type="redirectAction">
>       <param name="actionName">consumerView</param>
>     </result>
>   </action>
>
>   <action name="advisorView" class="
> com.health.management.vitals.action.AdvisorViewAction">
>     <result>/WEB-INF/view/advisor.jsp</result>
>   </action>
>
>   <action name="consumerView" class="
> com.health.management.vitals.action.ConsumerViewAction">
>     <result>/WEB-INF/view/consumer.jsp</result>
>   </action>
>
> </package>
>
> </struts>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to