jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: [standard] stupid question probably
Date Fri, 01 Nov 2002 21:45:08 GMT


On Fri, 1 Nov 2002, Shawn Bayern wrote:

> On Fri, 1 Nov 2002, Henri Yandell wrote:
>
> > Why can't I have a tag:
> >
> > <foo:do bar="<el:eval>Mr ${name}</el:eval>"/> ????
>
> Well, the main reason is that JSP doesn't allow a custom action as the
> attribute value of another custom action.  (It complicates parsing and
> causes the syntax to diverge even further from XML.)

I'll just be over here in the corner blushing :)

>
> > I can see that ExpressionEvaluatorManager likes to be called with the
> > String's attribute-name, for speed I assume.
>
> It's just for error-reporting.
>
> > Is there not a version which parses the expression for all the
> > variables in it, then looks in the session to find those values, and
> > interpolates them in?
>
> The core API (ExpressionEvaluatorManager.evaluate()) does just this.

Ahh. My error. I'd thought the attribute-name was important.

At least I was right about one thing. Stupid question :)

Hen


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


Mime
View raw message