struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils-Helge Garli Hegvik <nil...@gmail.com>
Subject Re: struts2-portlet2-plugin-2.1.8.1 in Liferay 6.0.5 - Post-Redirect-Get aka Redirect after post
Date Thu, 14 Oct 2010 16:25:18 GMT
I believe it is up to the container how the event -> render transition
is implemented. I don't think there's any guarantee that it's actualy
a redirect. If you have several portlets on the page, you could check
that the transition is ok by clicking on a an action/link in a
different portlet, and see that only the render phase is executed in
your struts2 portlet.

Nils-H

On Thu, Oct 14, 2010 at 6:11 PM, Alberto Gallardo <argrico@gmail.com> wrote:
> Hi,
>
>> Have you looked at the portlet sample app? It has a few portlet PRG
>> examples. Try deploying it in Liferay and see if it works as expected.
>
> I guess you mean the portlet sample in
> https://cwiki.apache.org/confluence/display/WW/Struts+2+Portlet+Tutorial
>
> Yes, I tried it and tried to debug the portlet and struts2 code; but
> after a few hours I gave up: As I already mentioned, the PRG works
> using the
>   PortletActionContext.getActionResponse().sendRedirect()
> method call inside an Action.execute.
>
> In any case, thanks for your answer.
>
> Alberto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message