My WEB-INF/index.jsp is used so that i can use the same installation as both
a portlet and a servlet.  Websphere comes with an embedded portlet container
as well as a servlet that can serve portlets as servlets, so i can install
my webapp a single time and have it accessible both in and out of my portal.

I may have led you astray by including that file in my post - the redirect
from there is working fine.  I am testing using the JettyPlutoLauncher class
and the maven-pluto-plugin / maven-jetty-plugin.  When accessing my portlet
at http://localhost/portlet/view/index, control goes into my index action
and i return "consumer" - the logs show:

5227707 [btpool0-1] DEBUG
org.springframework.beans.factory.support.DefaultListableBeanFactory - Bean
'org.apache.struts2.portlet.result.PortletActionRedirectResult' instantiated
via constructor [public
org.apache.struts2.portlet.result.PortletActionRedirectResult()]
5227722 [btpool0-1] DEBUG
com.opensymphony.xwork2.interceptor.I18nInterceptor - after Locale=en_US
5227722 [btpool0-1] DEBUG
com.opensymphony.xwork2.interceptor.I18nInterceptor - intercept }

but the page remains blank.

If i instead access http://localhost/portlet/pluto/index.jsp, again, control
goes into my index action, i return "consumer" and the logs show:

316389 [btpool0-1] DEBUG
org.springframework.beans.factory.support.DefaultListableBeanFactory - Bean
'org.apache.struts2.portlet.result.PortletActionRedirectResult' instantiated
via constructor [public
org.apache.struts2.portlet.result.PortletActionRedirectResult()]
5316389 [btpool0-1] DEBUG org.apache.struts2.portlet.result.PortletResult -
Executing result in Render phase
5316389 [btpool0-1] DEBUG org.apache.pluto.internal.impl.PortletEntityImpl -
Retrieved cross context: [EMAIL PROTECTED]
/portlet,file:/C:/workspaces/hin-portal-test/healthe-health-management-vitals/src/main/webapp/}
5316389 [btpool0-1] DEBUG org.apache.struts2.portlet.result.PortletResult -
Location: /view/consumerView.action
5316389 [btpool0-1] DEBUG
org.apache.pluto.internal.impl.PortletContextImpl-
PortletRequestDispatcher requested: /view/consumerView.action
5316389 [btpool0-1] DEBUG
org.apache.pluto.internal.impl.PortletRequestDispatcherImpl - Named
dispatcher created.
5316389 [btpool0-1] DEBUG
org.apache.pluto.internal.impl.PortletRequestDispatcherImpl - Request
dispatcher created.
5316389 [btpool0-1] DEBUG org.apache.pluto.internal.impl.RenderRequestImpl -
Render request's included mode: true
5316389 [btpool0-1] DEBUG org.apache.pluto.internal.impl.RenderRequestImpl -
No query string appended to the included request.
5316405 [btpool0-1] WARN com.opensymphony.xwork2.ognl.OgnlValueStack - Could
not find property
[Pluto_/portlet.HealtheHealthManagementVitals!_org.mortbay.jetty.included]
5316405 [btpool0-1] DEBUG org.apache.pluto.internal.impl.RenderRequestImpl -
Render request's included mode: false
5316405 [btpool0-1] DEBUG
com.opensymphony.xwork2.interceptor.I18nInterceptor - after Locale=en_US
5316405 [btpool0-1] DEBUG
com.opensymphony.xwork2.interceptor.I18nInterceptor - intercept }
5316405 [btpool0-1] DEBUG
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher - Leaving render
5316405 [btpool0-1] DEBUG org.apache.pluto.core.PortletContainerImpl -
Portlet Container [Pluto Portal Driver]: Portlet rendered for:
HealtheHealthManagementVitals
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletModeAnchorTag- Evaluated portletId
to: /portlet.HealtheHealthManagementVitals!
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletModeAnchorTag- Testing if
PortletWindowConfig [/portlet.HealtheHealthManagementVitals!]
supports mode [view]
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletModeAnchorTag- Evaluated portletId
to: /portlet.HealtheHealthManagementVitals!
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletModeAnchorTag- Testing if
PortletWindowConfig [/portlet.HealtheHealthManagementVitals!]
supports mode [edit]
5316405 [btpool0-1] INFO
org.apache.pluto.driver.services.impl.resource.SupportedModesServiceImpl -
Portlet mode 'edit' not found for portletId:
'/portlet.HealtheHealthManagementVitals!'
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletModeAnchorTag- Evaluated portletId
to: /portlet.HealtheHealthManagementVitals!
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletModeAnchorTag- Testing if
PortletWindowConfig [/portlet.HealtheHealthManagementVitals!]
supports mode [help]
5316405 [btpool0-1] INFO
org.apache.pluto.driver.services.impl.resource.SupportedModesServiceImpl -
Portlet mode 'help' not found for portletId:
'/portlet.HealtheHealthManagementVitals!'
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletWindowStateAnchorTag - Evaluated
portletId to: /portlet.HealtheHealthManagementVitals!
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletWindowStateAnchorTag - Testing if
PortletWindowConfig [/portlet.HealtheHealthManagementVitals!] supports
window state [minimized]
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletWindowStateAnchorTag - Evaluated
portletId to: /portlet.HealtheHealthManagementVitals!
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletWindowStateAnchorTag - Testing if
PortletWindowConfig [/portlet.HealtheHealthManagementVitals!] supports
window state [maximized]
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletWindowStateAnchorTag - Evaluated
portletId to: /portlet.HealtheHealthManagementVitals!
5316405 [btpool0-1] DEBUG
org.apache.pluto.driver.tags.PortletWindowStateAnchorTag - Testing if
PortletWindowConfig [/portlet.HealtheHealthManagementVitals!]
supports window state [normal]
In this case, the Pluto portal is shown with a portlet that has no content.
(the body div is completely empty, but the head div does have the portlet
name).

As well, consumerView.action render result does not pass control into the
action itself.


On 1/15/08, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote:

> 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