Return-Path: X-Original-To: apmail-tiles-users-archive@minotaur.apache.org Delivered-To: apmail-tiles-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 903A210B5A for ; Tue, 3 Mar 2015 20:42:51 +0000 (UTC) Received: (qmail 62022 invoked by uid 500); 3 Mar 2015 20:42:41 -0000 Delivered-To: apmail-tiles-users-archive@tiles.apache.org Received: (qmail 61983 invoked by uid 500); 3 Mar 2015 20:42:41 -0000 Mailing-List: contact users-help@tiles.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tiles.apache.org Delivered-To: mailing list users@tiles.apache.org Received: (qmail 61972 invoked by uid 99); 3 Mar 2015 20:42:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 20:42:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Brett.Ryan@johnsands.com.au designates 207.58.192.4 as permitted sender) Received: from [207.58.192.4] (HELO agwhqht.amgreetings.com) (207.58.192.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 20:42:16 +0000 Received: from USCLES541.agna.amgreetings.com ([fe80::a080:effe:d2f9:e00f]) by USCLES532.agna.amgreetings.com ([::1]) with mapi id 14.03.0210.002; Tue, 3 Mar 2015 15:42:13 -0500 From: "BR Brett Ryan (3456)" To: "" Subject: Re: How to use a custom org.apache.tiles.servlet.context.ServletTilesRequestContext Thread-Topic: How to use a custom org.apache.tiles.servlet.context.ServletTilesRequestContext Thread-Index: AQHQVdbbOnF/31xBrUiSt/Kb1kfh8Z0LaUIAgAACPoD//83fKg== Date: Tue, 3 Mar 2015 20:42:12 +0000 Message-ID: <7F7F1D11-8AB2-4D90-BADE-D5FE049400A2@johnsands.com.au> References: <1425407616.909844.235016901.0B131372@webmail.messagingengine.com>, In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-AU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: Clean Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Why? Maybe JSP isn't your answer and instead write out the stream separatel= y directly from your servlet. Sent from my iPhone > On 4 Mar 2015, at 05:44, JOSE L MARTINEZ-AVIAL wrote: >=20 > Hello mck, > I'm not going to compile the JSP on the fly on every request, just when > they change. Basically we have a token in the JSP that we want to replace > with the line number where the token is. Every time the JSP is requested, > we will check if the JSP file has been updated since the last time it was > requested, and if so, change the token in the JSP and call the > requestdispatcher as usual, so it can process it. >=20 > JL >=20 > 2015-03-03 13:33 GMT-05:00 mck : >=20 >> Compiling jsps on the fly is going to kill your performance. >>=20 >> Redesign the content instead to be dynamic or use a scripting language >> like velocity that doesn't need compiling for the particular template in >> question. >>=20 >> ~mck >>=20