Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@www.apache.org Received: (qmail 35854 invoked from network); 8 Sep 2004 17:27:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Sep 2004 17:27:17 -0000 Received: (qmail 31333 invoked by uid 500); 8 Sep 2004 17:27:12 -0000 Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 31263 invoked by uid 500); 8 Sep 2004 17:27:11 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 31250 invoked by uid 99); 8 Sep 2004 17:27:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [65.126.11.199] (HELO mailgwr.mamsi.com) (65.126.11.199) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Sep 2004 10:27:10 -0700 Received: from ex5fdk3.mamsi.net ([192.168.129.7]) by mailgwr.mamsi.com with Microsoft SMTPSVC(6.0.3790.0); Wed, 8 Sep 2004 13:23:34 -0400 Received: by ex5fdk3.mamsi.net with Internet Mail Service (5.5.2657.72) id ; Wed, 8 Sep 2004 13:27:07 -0400 Message-ID: <4860872E81FBB04ABD9394C18618A1AB07186F10@ex5rck2.mamsi.net> From: Helen Ge To: 'Tag Libraries Users List' Subject: RE: How to access java object method from JSTL expression Date: Wed, 8 Sep 2004 13:27:04 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-OriginalArrivalTime: 08 Sep 2004 17:23:34.0546 (UTC) FILETIME=[91CEBF20:01C495C8] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I am using JSTL 1.0(JSP 1.2) now. The java class method I am trying to access is a static method. I saw JSP 2.0 added the ability to call public static methods in EL expressions by adding a function element to our tag library descriptor (TLD). does JSP 1.2 has anyway to do that? Also, what if the method is not static method and the object is a not a bean , how to access that method? -----Original Message----- From: Kris Schneider [mailto:kris@dotech.com] Sent: Wednesday, September 08, 2004 12:57 PM To: Tag Libraries Users List Subject: Re: How to access java object method from JSTL expression Are you using JSTL 1.0 (JSP 1.2) or JSTL 1.1 (JSP 2.0)? Quoting Helen Ge : > Hi, > > > > I saw some examples to access standard java bean properties from JSTL > expression language on JSP page. I am wondering is there any way to access > regular java class methods from JSTL expression? > > > > Now in the JSP, I am trying to access a Java class, which has a business > method return a string value. That java class is not a java bean class. Can > someone tell me how to do that? > > > > > > Thanks -- Kris Schneider D.O.Tech --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org