Ate,

On 6/8/07, Ate Douma <[EMAIL PROTECTED]> wrote:
Philip Mark Donaghy wrote:
> Hi,
>
> I have an struts pattern that is an action which forwards to another
> action which forwards to a jsp in the same request. I believe the is a
> common pattern and isn't the cause of the error. Have you any clue as
> to what the cause may be?

Philip,

Make sure to define redirect="true" on your original forward from the action. 
That should fix it.
I just fixed a similar mistake in the JPetstore demo which also resulted in a 
stackoverflow :)

See: http://svn.apache.org/viewvc?view=rev&rev=545674

Thanks for your response. I have been debuging this problem for a
while. I have added the redirect="true" but there is still something
wrong with the form.

I've also added the form names to the struts-portlet-config render-context.

And I've specified PortletScopeStrutsSession init-param to be true.

Finally I've declared the portlet-url-type actions and all is...testing

NOK, I'll keep digging to find out what is happening when I add form
fields to an action.

When there are form fields the infinite loop wins. If I remove the
fields it works.

Philip


Regards,

Ate

>
> The stack trace,
>
> WARNING: Warning: Using the original action URL for render URL:
> /Options/NetworkMonitorOptionsViewStatus.do.
> A redirect should have been issued.
> Jun 2, 2007 8:57:35 PM org.apache.portals.bridges.struts.StrutsPortlet
> processRequest
> SEVERE: Include exception
> javax.servlet.ServletException: Servlet execution threw an exception
>     at
> 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:275)
>
>     at
> 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>     at
> 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>
>     at
> 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
>
>     at
> 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
>
>     at
> 
org.apache.portals.bridges.struts.PortletServletRequestDispatcher.invoke(PortletServletRequestDispatcher.java:115)
>
>     at
> 
org.apache.portals.bridges.struts.PortletServletRequestDispatcher.include(PortletServletRequestDispatcher.java:133)
>
>     at
> 
org.apache.portals.bridges.struts.PortletServlet.performActionRenderRequest(PortletServlet.java:172)
>
>     at
> 
org.apache.portals.bridges.struts.PortletTilesRequestProcessor.processRoles(PortletTilesRequestProcessor.java:57)
>
>     at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:197)
>
>     at
> 
org.apache.portals.bridges.struts.PortletTilesRequestProcessor.process(PortletTilesRequestProcessor.java:50)
>
>     at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
>     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>     at
> 
org.andromda.presentation.bpm4struts.ActionServlet.doGet(ActionServlet.java:39)
>
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> Thanks for you help.
> Philip
>


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




--
Philip Donaghy
Apache Portals (portals.apache.org) PMC member
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

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

Reply via email to