Re: Accessing properties in JSP without declaring getter method

ThorstenL <[email protected]> Mon, 8 Mar 2010 15:00:11 -0800 (PST)
Newsgroups gmane.comp.java.springframework.user
Message-ID <[email protected]>


SPJ wrote:
> 
> Hi,
> I have a class where I defined few string variables. 
> My question is Is there anyway to access these in a JSP thru Expression
> Language with out declaring a getter method. I can define these variables
> as public. Does Spring provides any way access in the JSP with out
> declaring  a getter.
> 
> Thanks
> SP
> 
Hi,
There is a taglib that takes all constants (public static final...) from any
class (or interface) into the context of the webpage and makes these values
accessible from EL expressions. 

http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html

HTH
 Coke
-- 
View this message in context: http://old.nabble.com/Accessing-properties-in-JSP-without-declaring-getter-method-tp27828080p27828994.html
Sent from the springframework-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev