On Thu, 16 Jan 2003, Harinath DP wrote:

> Date: Thu, 16 Jan 2003 17:36:45 +0530
> From: Harinath DP <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts-User <[EMAIL PROTECTED]>
> Subject: Comparing values of variables
>
> Is there a taglib in struts which would allow me to compare a value of a
> variable with a value of another variable. I went thru struts docs and found
> only constants can be compared with <logic:equal> tag
>
> -Hari
>

If you're running on a Servlet 2.3 / JSP 1.2 container, JSTL is right up
your alley:

  <c:if test="${foo.bar == baz.bop}">
    ...
  </c:if>

You can get the code that is the basis of the reference implementation
from:

  http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

Struts 1.1b3 includes a "struts-el" package (in the contrib directory)
that supports the same kinds of expressions in many Struts tags.  It also
requires Servlet 2.3 / JSP 1.2, and JSTL, to operate.

Craig




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

Reply via email to