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.

Nils-H

On Thu, Oct 14, 2010 at 5:52 PM, Alberto Gallardo <argr...@gmail.com> wrote:
>>> couldn't get the Post-Redirect-Get (PRG) working. The <result
>>> type="redirectAction"> does not translate into a browser redirection.
>
> I couldn't make this working, but...
>
>> I've tried to debug the code, and only could find following method
>> implementation, that suggest me that an http redirection
>> _is_not_supported_:
>>
>> package org.apache.struts2.portlet.servlet;
>> ...
>> public class PortletServletResponse implements HttpServletResponse {
>> ...
>>    public void sendRedirect(String location) throws IOException {
>>        throw new IllegalStateException("Not allowed in a portlet");
>>    }
>>
>> Am I wrong?
>
> ...I found that I can redirect using this method inside an Action.execute():
>
>   PortletActionContext.getActionResponse().sendRedirect(String location)
>
>
> Regards,
>
> Alberto Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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

Reply via email to