tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmk...@earthlink.net (David M. Karr)
Subject How to use JSTL engine to evaluate exprs in a "context"?
Date Tue, 20 Aug 2002 03:40:41 GMT
I implied I wanted to know this in my "Status-EL" note, but I'll state it
explicitly here.

I want to figure out how to utilize the JSTL engine so I can do something like
the following:

In the context of Struts, given either an implicitly or explicitly specified
named bean, evaluate EL expressions assuming that all the variables in the
expressions are prefixed with the name of the implicit/explicit bean, unless
the variable references begin with the standard JSTL implicit variables, like
"pageScope", "requestScope", etcetera.

I realized it might be straightforward to define a VariableResolver class that
just adds another implicit variable, called "formbean", and if found, would
return either the implicitly or explcitly specified form bean.  From a quick
glance, this has a slight difficulty in the fact that I can't change the
VariableResolver member of ELEvaluator.

Alternatively, I'd also like to consider the possibility of the form bean being
REALLY implicit, not referencing it explicitly in the expression at all, but I
don't understand how I could manage that.

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net


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


Mime
View raw message