On Thu, 14 Mar 2002, John Baker wrote:

> On Thursday 14 Mar 2002 12H:27 pm, you wrote:
> > I had the same question about a week or so back.. here's what i found:
> >
> > Try:
> >
> >     <c:if test="$(request.clearDataSelectionContainer=='true' ||
> > request.clearDataSelectionContainer==null)">
> >             TRUE
> >     </c:if>
> 
> Cooo, well what's the difference between ${ and $(?

$( doesn't work, and ${ does.  :-)

(Incidentally, the "${" looks like a ":-)" type figure for a man who's
blinded by money.)

Note that nothing prohibits you from having an attribute value that
looks like

 "$(2 + 2)"

This, however, simply evaluates to the literal string "$(2 + 2)" and is
not interpreted as an expression.  "${2 + 2}" evaluates to 4.

--
Shawn Bayern
Author, "JSP Standard Tag Library"  http://www.jstlbook.com
(coming this summer from Manning Publications)


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

Reply via email to