struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srishankar Ramaswamy" <Srishankar_Ramasw...@infosys.com>
Subject RE: "Doubt in logic:equal"
Date Fri, 12 Jul 2002 05:56:48 GMT
I have only jsp 1.1 container. i would appreciate if u could provide a solution with struts
tag.

regards,
sri.

-----Original Message-----
From: Matt Raible [mailto:matt_raible@yahoo.com]
Sent: Friday, July 12, 2002 10:40 AM
To: Struts Developers List
Subject: Re: "Doubt in logic:equal"


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>


--
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