Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 91046 invoked from network); 29 Jan 2010 17:47:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jan 2010 17:47:28 -0000 Received: (qmail 73583 invoked by uid 500); 29 Jan 2010 17:47:24 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 73515 invoked by uid 500); 29 Jan 2010 17:47:24 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 73504 invoked by uid 99); 29 Jan 2010 17:47:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 17:47:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fredbasset1000@gmail.com designates 209.85.216.187 as permitted sender) Received: from [209.85.216.187] (HELO mail-px0-f187.google.com) (209.85.216.187) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 17:47:18 +0000 Received: by pxi17 with SMTP id 17so3544657pxi.30 for ; Fri, 29 Jan 2010 09:46:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=UlGSoy7DH04yPUfF2B9fmA72lpnCXdebKlXcgtdwD0k=; b=KZMgoea2F6azd5+t07S63e4wNQYbSqGq5M6nUNDZCNubbeZt2eEZEsrPzDYNs9UU4V Ll84Hd+iVWmyXVdbZx47fud9FiLfWNS0SvFzf3zwH4JlJ8oefTIfeKjKbBoLkEnFBlRN OfYgZT3CKXPoDp545kT3ZAt//rknLbkbjlioI= 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=QDefSKV9+6qWqfGM4AlejEOcf2GxV44VTJ8sTrzFVcoMEaLgfKmBYptxDGTvqRxvxA WwrrrsqFdG0APHA67pWLhapMk7QQtzR+7RtuS90F3f29yIsZsVskKfMxICiejJflWeno UXfzo8Y4/4wyHPTSbalMNRLlw1NFzO/rcv8Dk= MIME-Version: 1.0 Received: by 10.142.60.12 with SMTP id i12mr780517wfa.66.1264787217395; Fri, 29 Jan 2010 09:46:57 -0800 (PST) In-Reply-To: <1C6F1A87DD804C479CF4C0B0CAE88D5403232756@be19.exg4.exghost.com> References: <53f6cdc91001290854w7b33a603n16c9ede88dfa4d79@mail.gmail.com> <99C8B2929B39C24493377AC7A121E21F96C39D6D90@USEA-EXCH8.na.uis.unisys.com> <53f6cdc91001290907u5d59cf5fv87556b5808159e79@mail.gmail.com> <1C6F1A87DD804C479CF4C0B0CAE88D5403232756@be19.exg4.exghost.com> Date: Fri, 29 Jan 2010 09:46:57 -0800 Message-ID: <53f6cdc91001290946x457deb42jc01fdfa4078b231b@mail.gmail.com> Subject: Re: Viewing JSP's compiled code From: fred basset To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yeah I would do this but the p in this case is a class auto generated by Hibernate, and I don't know yet if it's possible to customize those auto generated classes (but I'm going to find out). On Fri, Jan 29, 2010 at 9:18 AM, Joseph Morgan wrote: > A really "poor man's" way of doing this is to add a "getXXX" in "p"s clas= s that calls > The java function and returns the value. =A0Then, you could just write so= mething like: > > ${p.XXX} > > Replacing XXX with the name of the function. > > > > -----Original Message----- > From: fred basset [mailto:fredbasset1000@gmail.com] > Sent: Friday, January 29, 2010 11:07 AM > To: Tomcat Users List > Subject: Re: Viewing JSP's compiled code > > Thanks, found it. > > What I am trying to do is access a variable from a forEach loop. =A0In > the example below I want to call a java function to do some > calculations on each "p" variable in the loop and output the results > of the calculation in the table. =A0How do I do this? > > > =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 items=3D"${model.projects}"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 class=3D"zLarge"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 class=3D"zSmall">
class=3D"StdTableData">${fn:length(p.travelTimeSegments)}
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 class=3D"zSmall">
need to call java fn on p > here
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 class=3D"zSmall">
${p.modifyTime}
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 > > > On Fri, Jan 29, 2010 at 8:57 AM, Caldarale, Charles R > wrote: >>> From: fred basset [mailto:fredbasset1000@gmail.com] >>> Subject: Viewing JSP's compiled code >>> >>> Simple question, how do I keep and view the source code generated when >>> a JSP is compiled? >> >> Look in Tomcat's work directory - several levels deep, organized by weba= pp name. >> >> =A0- Chuck >> >> >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY= MATERIAL and is thus for use only by the intended recipient. If you receiv= ed this in error, please contact the sender and delete the e-mail and its a= ttachments from all computers. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org