Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 46492 invoked from network); 24 Oct 2008 09:29:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2008 09:29:01 -0000 Received: (qmail 98837 invoked by uid 500); 24 Oct 2008 09:28:55 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 98814 invoked by uid 500); 24 Oct 2008 09:28:55 -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 98803 invoked by uid 99); 24 Oct 2008 09:28:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2008 02:28:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tkrah@fachschaft.imn.htwk-leipzig.de designates 141.57.7.10 as permitted sender) Received: from [141.57.7.10] (HELO tuxmail.imn.htwk-leipzig.de) (141.57.7.10) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2008 09:27:41 +0000 Received: from localhost (localhost [127.0.0.1]) by tuxmail.imn.htwk-leipzig.de (Postfix) with ESMTP id 066CF15CDD for ; Fri, 24 Oct 2008 11:27:49 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at tuxmail.imn.htwk-leipzig.de Received: from tuxmail.imn.htwk-leipzig.de ([141.57.7.10]) by localhost (tuxmail.imn.htwk-leipzig.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1mgCA7CWZmiN for ; Fri, 24 Oct 2008 11:27:48 +0200 (CEST) Received: from sf033.friends (unknown [212.144.248.186]) by tuxmail.imn.htwk-leipzig.de (Postfix) with ESMTPSA id 30A2615CCA for ; Fri, 24 Oct 2008 11:27:48 +0200 (CEST) From: Torsten Krah Reply-To: tkrah@fachschaft.imn.htwk-leipzig.de To: "Struts Users Mailing List" Subject: Re: Portlet, DirectRenderFromEventAction - how to change the interceptor stack? Date: Fri, 24 Oct 2008 11:27:44 +0200 User-Agent: KMail/1.9.10 References: <200810231309.08353.tkrah@fachschaft.imn.htwk-leipzig.de> <7270d7cd0810240057w27726088jd6069d267a4099e0@mail.gmail.com> <200810241109.46342.tkrah@fachschaft.imn.htwk-leipzig.de> In-Reply-To: <200810241109.46342.tkrah@fachschaft.imn.htwk-leipzig.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1674549.sYxjdA1FxN"; protocol="application/pkcs7-signature"; micalg=sha1 Content-Transfer-Encoding: 7bit Message-Id: <200810241127.47382.tkrah@fachschaft.imn.htwk-leipzig.de> X-Virus-Checked: Checked by ClamAV on apache.org --nextPart1674549.sYxjdA1FxN Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Freitag, 24. Oktober 2008 11:09:43 schrieb Torsten Krah: > PortletActionContext.getActionRequest().getPortletSession() Some more thoughts about this. I think this is a design error in struts2. public static ActionRequest getActionRequest() { if (!isEvent()) { throw new IllegalStateException( "ActionRequest cannot be obtained in render phase"); } return (ActionRequest) getContext().get(REQUEST); } Code is done like this, thats ok because i should not be able to make state= =20 changes, it seems good to not allow access if this is render phase. However, PRG does allow transfering objects in the session (ActionErrors,=20 Messages and FieldErrors for example have to be put there to show them on t= he=20 next action - have to be "handwritten" interceptor or something). But the only way i see to get at the portlet global session is via the=20 ActionRequest calling getPortletSession (it is the only one, isn't it?) - b= ut=20 if i cannot call getActionRequest, how should i get my session object? This is confusing - implementing SessionAware does not help, because the on= ly=20 thing i get is the session applied to my portlet, but not the global sessio= n=20 (APP_SCOPE) i need to share stuff between portlet/servlets. Some hints? File a jira report? =2D-=20 Bitte senden Sie mir keine Word- oder PowerPoint-Anh=C3=A4nge. Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html Really, I'm not out to destroy Microsoft. That will just be a=20 completely unintentional side effect." -- Linus Torvalds --nextPart1674549.sYxjdA1FxN Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFXDCCBVgw ggNAoAMCAQICAwRIIDANBgkqhkiG9w0BAQUFADB5MRAwDgYDVQQKEwdSb290IENBMR4wHAYDVQQL ExVodHRwOi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmluZyBBdXRob3Jp dHkxITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZzAeFw0wNzExMTQxMjE2NTNaFw0w OTExMTMxMjE2NTNaME8xGDAWBgNVBAMTD0NBY2VydCBXb1QgVXNlcjEzMDEGCSqGSIb3DQEJARYk dGtyYWhAZmFjaHNjaGFmdC5pbW4uaHR3ay1sZWlwemlnLmRlMIIBIjANBgkqhkiG9w0BAQEFAAOC AQ8AMIIBCgKCAQEA3y1Pu6r0+4FmfSZWO07KYv5FWDy+AqKfvQ/+trLjKHgJv1sZDKIURtVVHlgP qsMddecGuLrcSnjbAEO9I0XNvpOaTyNIKvsfyTBc9/oNk5Oeb8XQ2PG6UM1RQiHuLwxTEquFh/xf oTO7ZlRl3j0YzsXa7hR/slU64EVGidO3289Z6eJv2jD9E1I1ujD630ifCMhiI/HGxobGYFdI1cy1 Ne3Pc8BeWsSv8BS4fI7eMuFDI3DSCmk8mtgVSSBFLvRQ6laD7zawB+aDvvu+/NgClAEksCBRim5D DnJ+PVZm29GUHpkP7sf2ztsotckLyet3d5rg/aVwI7iYBAoWkvwDcwIDAQABo4IBETCCAQ0wDAYD VR0TAQH/BAIwADBWBglghkgBhvhCAQ0ESRZHVG8gZ2V0IHlvd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