You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by Grant Jokerst <gr...@jokerst.com> on 2002/12/03 21:39:47 UTC

EL in input taglib

Hello,

Are there any plans to have EL support in the input taglib to ease
integration with the JSTL tags.  I know EL support has been added to the
strings taglib (which has made using JSTL much cleaner and easier).  What
is the current stance on adding EL support to other taglibs?  Are there
any decent servlet engines out there yet that support JSTL natively?

It is much cleaner to do
...
Date:
<input:text name="date" default="${curDate.rows[0].date}"/>
...

or alternatively nested tags could be added:
...
Date:
<input:text name="date">
  <input:default>
    <c:out value="${curDate.rows[0].date}"/>
  </input:default>
</input:text>
...

than
...
Date:
<input:text name="date"
default='<%org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate("curDate",
"${curDate.rows[0].date}", String.class, null, pageContext
).toString()%>'/>
...

I would be willing to make the changes.

Thanks,
Grant



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: EL in input taglib

Posted by Karl von Randow <ka...@cactuslab.com>.
Hi Grant,

That sounds like a pretty good idea - will possibly depend on the
general EL support adding plans as you say.

I wonder, is there a problem with enabling EL on an attribute in case it
can contain userdefined data (which might start with a $ etc and cause a
security problem) - is the solution to this as simple as having a new
attribute name, or creating a new nested tag as Grant has shown below.

Cheers,
k@rl

-----Original Message-----
From: Grant Jokerst [mailto:grant@jokerst.com] 
Sent: Wednesday, 4 December 2002 9:40 a.m.
To: taglibs-dev@jakarta.apache.org
Subject: EL in input taglib


Hello,

Are there any plans to have EL support in the input taglib to ease
integration with the JSTL tags.  I know EL support has been added to the
strings taglib (which has made using JSTL much cleaner and easier).
What is the current stance on adding EL support to other taglibs?  Are
there any decent servlet engines out there yet that support JSTL
natively?

It is much cleaner to do
...
Date:
<input:text name="date" default="${curDate.rows[0].date}"/>
...

or alternatively nested tags could be added:
...
Date:
<input:text name="date">
  <input:default>
    <c:out value="${curDate.rows[0].date}"/>
  </input:default>
</input:text>
...

than
...
Date:
<input:text name="date"
default='<%org.apache.taglibs.standard.lang.support.ExpressionEvaluatorM
anager.evaluate("curDate",
"${curDate.rows[0].date}", String.class, null, pageContext
).toString()%>'/> ...

I would be willing to make the changes.

Thanks,
Grant



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>