struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <rosenberg.l...@googlemail.com>
Subject Re: logic:greaterThan tag - issue
Date Thu, 09 Aug 2007 12:38:17 GMT
have you tried to use double instead?
Leon

On 8/9/07, Mad Shop <jmsr_us@yahoo.com> wrote:
>   Following is my actual code
>      <nested:notEmpty property="completeItems">
>         <nested:iterate property="completeItems" id="complete" indexId="completeIdx">
>          <nested:write property="paymentAmount" />
>         <nested:greaterEqual property="paymentAmount" value="1000.00">
>       <tr>
>                     <b> Greater Equal 1000 </b>
>          </tr>
>   </nested:greaterEqual>
>      </nested:iterate>
> </nested:notEmpty>
>
>
>         This is working for all the values greater and equal to 1000 but it also works
for all the values less than 1000, which it should not.  Can you help me out in this.  I am
getting "Greater Equal 1000" message even for values less than 1000.
>
>     The bean property returns a big Decimal.  But still this comparision fails!  Not
able to get to the root of the cause, do you have any idea.
>               I am retriving the values from Database, and I have checked the return
value its a big decimal.
>
>   Even <logic:greaterEqual> is not working for me.
>
>   We are using Struts 1.2 version.  Still problem exists.
>           Specification-Title: Struts Framework
> Specification-Vendor: The Apache Software Foundation
> Specification-Version: 1.2.7
> Implementation-Title: Struts Framework
> Implementation-Vendor: The Apache Software Foundation
> Implementation-Vendor-Id: org.apache
> Implementation-Version: 1.2.7
>
>   struts-logic.tld entries
>        <tlibversion>1.2</tlibversion>
> <jspversion>1.1</jspversion>
>
>
>
>
> ---------------------------------
> Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message