Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 28654 invoked by uid 500); 19 Sep 2002 06:22:49 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 28643 invoked from network); 19 Sep 2002 06:22:49 -0000 Reply-To: From: "neil" To: "Cocoon-Users (E-mail)" Subject: fix EncodeURLTransformer to process page that generates the session Date: Thu, 19 Sep 2002 16:26:39 +1000 Message-ID: <002c01c25fa5$83ee72c0$3300000a@CONTRACT01> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I've just started using org.apache.cocoon.transformation.EncodeURLTransformer and found it works fine except for the first page generated after my login page i.e. the page that creates the session. I see that it uses request.isRequestedSessionIdFromURL() to determine whether any encoding is required, but this is false for the page that creates the session. If I change the test from if ( request.isRequestedSessionIdFromURL() ) { to final String fred = "fred.html"; if ( request.isRequestedSessionIdFromURL() || !fred.equals(response.encodeURL(fred)) ) { then it works for this page too. Maybe there's a neater way to do the same thing? Without this fix a workaround would be to create the session when the login form is generated instead of when its posted. Cheers, Neil. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: