struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Raible <matt_rai...@yahoo.com>
Subject Re: "Doubt in logic:equal"
Date Fri, 12 Jul 2002 05:09:55 GMT
Easy with JSTL if you have a JSP 1.2 container:

<c:choose>
  <c:when test="${b1.x == b2.y}">
    display message1.
  </c:when>
  <c:otherwise>
    display message2.
  </c:otherwise>
</c:choose>

In the future, these types of messages should be asked on the user's list.

HTH,

Matt

--- Srishankar Ramaswamy <Srishankar_Ramaswamy@infosys.com> wrote:
> How do we compare two variables using logic:equal without using scriplet.
> 
> Bean1 {
>   String x;
> }
> 
> Bean2 {
>    String y;
> }
> 
>  The logic required is :
>    
>    if(b1.x == b2.y)
>      display message1.
>   else
>      display message2.
>   end if.,
> 
> where b1, b2 are objects of type Bean1, Bean2 respectively.
> 
> regards,
> Srishankar.
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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


Mime
View raw message