struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@attws.com>
Subject RE: <html:options />
Date Thu, 24 Oct 2002 15:13:40 GMT
> -----Original Message-----
> From: Chen, Gin [mailto:Gin_Chen@tvratings.com]
> Sent: Thursday, October 24, 2002 7:46 AM

> 	I'm not sure but I wonder if u can "fool" struts into doing this
> with the new Struts-EL.
> I wonder if u do something like assuming that ur singleton is 
> class Blah
> and it defines a static method called getInstance() [since 
> its a singleton
> it should]
> then u should be able to make do.
> 	${blah.instance.allParts} in EL. no? i'm pretty new to 
> the whole EL
> thing still so I'm not 100% sure. Shawn Bayern or David Karr 
> or David Graham
> (who contributed Struts-EL) might better answer that :-P
> 	if that does work but u cant use Struts-EL you can 
> still set up a
> var using c:set.

The JSTL EL syntax only allows references to getter methods and properties
as defined in the JavaBeans specification.  You can't reference static
variables.

And as to your people references, Shawn is the JSTL expert (implementation
lead), and I wrote Struts-EL (which was simple, given Struts and the JSTL).

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message