Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 21217 invoked from network); 1 May 2008 09:05:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 May 2008 09:05:15 -0000 Received: (qmail 91507 invoked by uid 500); 1 May 2008 09:05:06 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 91480 invoked by uid 500); 1 May 2008 09:05:06 -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 91469 invoked by uid 99); 1 May 2008 09:05:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 02:05:06 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 09:04:13 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JrUiP-0007sD-Fa for user@struts.apache.org; Thu, 01 May 2008 02:04:33 -0700 Message-ID: <16993179.post@talk.nabble.com> Date: Thu, 1 May 2008 02:04:33 -0700 (PDT) From: ravi_eze To: user@struts.apache.org Subject: RE: Simplified usage of:@com.company.Constants.StaticCOnstants In-Reply-To: <1209533660.6102.3.camel@wesw-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ravichandrac@ivycomptech.com References: <16941171.post@talk.nabble.com> <1209426936.5695.0.camel@wesw-laptop> <16952906.post@talk.nabble.com> <42db7f0a0804282209p5f4b05i6462e7d1494e1fe5@mail.gmail.com> <49A7BA114AAC6A48B9C44CB06B7B987E01C7B023@HYDSVWIN004X.ivycomptech.partygaming.local> <1209505356.5732.1.camel@wesw-laptop> <16975464.post@talk.nabble.com> <1209533660.6102.3.camel@wesw-laptop> X-Virus-Checked: Checked by ClamAV on apache.org hi, even this doesnt seem to be working. is it possible to load the constant class to the context and then display it form there.? or in that case it expects a setters and getters... or some way of getting this done.. the code is very bad to read 'cos every time i am using @com.company.... any help??? cheers, ravi Wes Wannemacher wrote: > > Did you try to import your Constants class? > > <%@ page import="com.company.Constants" %> > > > > As far as say C.staticconstant1, all I can really say is that the @ > symbol is how you access static vars/methods in OGNL. > > Another choice might be to use regular ol' EL expressions. > > -Wes > > On Tue, 2008-04-29 at 21:45 -0700, ravi_eze wrote: >> hi, >> >> >> Does the following work - >> >> >> >> >> Yes it does. But my requirement is more like i would import the class >> into >> some bean/ variable (C) so that i can say C.staticconstant1 etc... but by >> the approach mentioned above, i should repeat the @com.company.Constant >> string always which reduces the readability. Hope this adds some clarity. >> Something similar to import.... and then say Constant.... >> >> Also, is com.company.Constants.STATIC_CONSTANTS1 a String? >> >> Yes its a string. i would be greatful to any further help. >> >> >> cheers, >> ravi > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Simplified-usage-of%3A%40com.company.Constants.StaticCOnstants-tp16941171p16993179.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org