Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 64505 invoked from network); 14 Oct 2010 16:25:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Oct 2010 16:25:49 -0000 Received: (qmail 53744 invoked by uid 500); 14 Oct 2010 16:25:47 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 53703 invoked by uid 500); 14 Oct 2010 16:25:46 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 53695 invoked by uid 99); 14 Oct 2010 16:25:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 16:25:46 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nilsga@gmail.com designates 209.85.216.48 as permitted sender) Received: from [209.85.216.48] (HELO mail-qw0-f48.google.com) (209.85.216.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 16:25:40 +0000 Received: by qwf7 with SMTP id 7so1985461qwf.35 for ; Thu, 14 Oct 2010 09:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=w+p77BzqvpfpdlTmDLRshO3j1N9q+WDiE7HV+h4CQSA=; b=j7MQWN35RtNTd/F9kmwm/TE2Gp4yt0ZnMmEpxOAjQi7AD2BQwwvIwLO7LSHPnRjUBF RnRGrdePc4lahmZ/KBK7HAe8V8y/kQ8Vnkq54BrtfUJHNcg8SSaWZgS0QFDjSTBVTUsV 7lRK0TndzqFCP3D8pZSYnJt5qxYeYWjIgrto0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=iDPU1TMSQOKFnxbovvebVhBFYuca14ko3x+0uGL8D0nZcw/LqNhoGLchvnWPI6a/qR 2nLiU/rgW62s32QOyaZarA0kUUsDn81+avA9jDXICNyESQYvySPwKtMC8KRcl0NjfGgS fmmkn1HIcTegw+UBjV3b21zMccjjEFE8ytUp0= MIME-Version: 1.0 Received: by 10.229.212.1 with SMTP id gq1mr9079330qcb.28.1287073519824; Thu, 14 Oct 2010 09:25:19 -0700 (PDT) Received: by 10.229.9.9 with HTTP; Thu, 14 Oct 2010 09:25:18 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Oct 2010 18:25:18 +0200 Message-ID: Subject: Re: struts2-portlet2-plugin-2.1.8.1 in Liferay 6.0.5 - Post-Redirect-Get aka Redirect after post From: Nils-Helge Garli Hegvik To: Struts Users Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 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 > =A0 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