I am using Tomcat 4.1.18 right now, so for the time being I'll just send
null for the attribute variables into the ExpressionEvaluatorManager.
Thanks Shawn and Tim (and the taglibs-user community),

James Smith
Developer, Treistman Center
College of Fine Arts, University of Arizona

----- Original Message -----
From: "Shawn Bayern" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 9:08 AM
Subject: Re: Evaluating BodyContent


> JSP 2.0 (for which standard Tomcat 5.0 is a compliant container) shifts
> the responsibility of evaluating EL expressions to the container, not
> individual tag handlers.  If you're writing an application for JSP 1.2,
> you could theoretically use our ExpressionEvaluatorManager to parse
> expressions from anywhere, including BodyContent; simply ignore the
> arguments associated with tag attributes.
>
> Note that without JSP 2.0's support, retrieving expressions from
> BodyContent and parsing them at doEndTag() (or some other fixed point) can
> be extraordinarily confusing to users.  Consider the following situation:
>
>  <my:tag>
>    ${a}
>    <c:set var="a" value="${...}" />
>  </my:tag>
>
> The user will probably expect ${a} to evaluate to its original value, but
> if the tag's only opportunity to read and parse the content comes within
> doEndTag(), ${a}'s evaluation will be affected by the <c:set> that occurs
> *after* its presence in the page.
>
> --
> Shawn Bayern
> "JSTL in Action"   http://www.manning.com/bayern
>
> On Fri, 21 Mar 2003, Tim Kettering wrote:
>
> > If I understand correctly, a JSP 2.0 container will let you use EL 2.0
expressions anywhere in the jsp body without having to use the JSTL tags.  I
also believe that Tomcat 5 is a JSP 2.0 container, and that support may
already be there, I have no idea though.  Someone else may be able to answer
that better.
> >
> > -tim
> >
> > On Friday, March 21, 2003, at 10:21AM, James Smith <[EMAIL PROTECTED]
a.edu> wrote:
> >
> > >I'm writing a custom tag where I would like to, if possible, evaluate
the EL
> > >expressions that may be present within the tag's BodyContent.  The
> > >ExpressionEvaluatorManager seems to need EL expressions to be tied to
an
> > >attribute of the tag.  Is it possible to evaluate the BodyContent?  If
so,
> > >how?  If not, will this issue be resolved in JSP 2.0?  Thanks much,
> > >
> > >James Smith
> > >Developer, Treistman Center
> > >College of Fine Arts, University of Arizona
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to