You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mad Shop <jm...@yahoo.com> on 2007/08/09 12:41:24 UTC
logic:greaterThan tag - issue
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.
Re: logic:greaterThan tag - issue
Posted by Laurie Harper <la...@holoweb.net>.
That suggests that the versions of the TLD files you have under WEB-INF
are from a more recent version of Struts than you have deployed. In
general, there is no need to place TLD files under WEB-INF, though;
they'll be found within the JAR files automatically.
So, just delete the files from WEB-INF (and any related entries you may
have in web.xml) and update your JSPs if necessary to reference the
taglibs by their proper URI rather than as /WEB-INF/xxx.tld.
L.
Mad Shop wrote:
> Following are the differences!!!! Will this make any difference
>
> struts-logic.tld file in struts.jar file
> <tlibversion>1.0</tlibversion>
> <jspversion>1.1</jspversion>
>
> struts-logic.tld file under WEB-INF folder
> <tlibversion>1.2</tlibversion>
> <jspversion>1.1</jspversion>
>
>
> Mad Shop <jm...@yahoo.com> wrote:
> Hi Leon,
>
> I just now verified that the tld files i.e., struts-nested.tld, struts-nested.tld in struts.jar and tld files under WEB-INF are different. Does this make any difference! When I extracted these two tld's from struts.jar and replaced with exisiting tld files under WEB-INF directory, but now its not even entering in the tag!!!! Are there any other related changes we have to make!
>
>
>
> Leon Rosenberg wrote:
> How is the BigDecimal a requirement for a jsp page?
> You know that you can (and often should) use different formats for
> storage and computations and for presentation?
>
> regards
> Leon
>
> On 8/9/07, Mad Shop wrote:
>> Thanks Leon,
>>
>> Big Decimal is our project requirement. Looks like the tld files under my WEB-INF directory are not correct. Can you please let me know the compatable nested tld files for struts1.2.7 version.
>>
>> Regards
>>
>>
>> Leon Rosenberg wrote:
>> have you tried to use double instead?
>> Leon
>>
>> On 8/9/07, Mad Shop wrote:
>>> Following is my actual code
>>>
>>>
>>>
>>>
>>>
>>> Greater Equal 1000
>>>
>>>
>>>
>>>
>>>
>>>
>>> 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 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
>>> 1.2
>>> 1.1
>>>
>>>
>>>
>>>
>>> ---------------------------------
>>> 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
>>
>>
>>
>>
>> ---------------------------------
>> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
> ---------------------------------
> Be a better Globetrotter. Get better travel answers from someone who knows.
> Yahoo! Answers - Check it out.
>
>
> ---------------------------------
> Shape Yahoo! in your own image. Join our Network Research Panel today!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: logic:greaterThan tag - issue
Posted by Mad Shop <jm...@yahoo.com>.
Following are the differences!!!! Will this make any difference
struts-logic.tld file in struts.jar file
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
struts-logic.tld file under WEB-INF folder
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
Mad Shop <jm...@yahoo.com> wrote:
Hi Leon,
I just now verified that the tld files i.e., struts-nested.tld, struts-nested.tld in struts.jar and tld files under WEB-INF are different. Does this make any difference! When I extracted these two tld's from struts.jar and replaced with exisiting tld files under WEB-INF directory, but now its not even entering in the tag!!!! Are there any other related changes we have to make!
Leon Rosenberg wrote:
How is the BigDecimal a requirement for a jsp page?
You know that you can (and often should) use different formats for
storage and computations and for presentation?
regards
Leon
On 8/9/07, Mad Shop wrote:
> Thanks Leon,
>
> Big Decimal is our project requirement. Looks like the tld files under my WEB-INF directory are not correct. Can you please let me know the compatable nested tld files for struts1.2.7 version.
>
> Regards
>
>
> Leon Rosenberg wrote:
> have you tried to use double instead?
> Leon
>
> On 8/9/07, Mad Shop wrote:
> > Following is my actual code
> >
> >
> >
> >
> >
> > Greater Equal 1000
> >
> >
> >
> >
> >
> >
> > 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 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
> > 1.2
> > 1.1
> >
> >
> >
> >
> > ---------------------------------
> > 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
>
>
>
>
> ---------------------------------
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.
---------------------------------
Shape Yahoo! in your own image. Join our Network Research Panel today!
Re: logic:greaterThan tag - issue
Posted by Mad Shop <jm...@yahoo.com>.
Hi Leon,
I just now verified that the tld files i.e., struts-nested.tld, struts-nested.tld in struts.jar and tld files under WEB-INF are different. Does this make any difference! When I extracted these two tld's from struts.jar and replaced with exisiting tld files under WEB-INF directory, but now its not even entering in the tag!!!! Are there any other related changes we have to make!
Leon Rosenberg <ro...@googlemail.com> wrote:
How is the BigDecimal a requirement for a jsp page?
You know that you can (and often should) use different formats for
storage and computations and for presentation?
regards
Leon
On 8/9/07, Mad Shop wrote:
> Thanks Leon,
>
> Big Decimal is our project requirement. Looks like the tld files under my WEB-INF directory are not correct. Can you please let me know the compatable nested tld files for struts1.2.7 version.
>
> Regards
>
>
> Leon Rosenberg wrote:
> have you tried to use double instead?
> Leon
>
> On 8/9/07, Mad Shop wrote:
> > Following is my actual code
> >
> >
> >
> >
> >
> > Greater Equal 1000
> >
> >
> >
> >
> >
> >
> > 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 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
> > 1.2
> > 1.1
> >
> >
> >
> >
> > ---------------------------------
> > 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
>
>
>
>
> ---------------------------------
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.
Re: logic:greaterThan tag - issue
Posted by Leon Rosenberg <ro...@googlemail.com>.
How is the BigDecimal a requirement for a jsp page?
You know that you can (and often should) use different formats for
storage and computations and for presentation?
regards
Leon
On 8/9/07, Mad Shop <jm...@yahoo.com> wrote:
> Thanks Leon,
>
> Big Decimal is our project requirement. Looks like the tld files under my WEB-INF directory are not correct. Can you please let me know the compatable nested tld files for struts1.2.7 version.
>
> Regards
>
>
> Leon Rosenberg <ro...@googlemail.com> wrote:
> have you tried to use double instead?
> Leon
>
> On 8/9/07, Mad Shop wrote:
> > Following is my actual code
> >
> >
> >
> >
> >
> > Greater Equal 1000
> >
> >
> >
> >
> >
> >
> > 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 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
> > 1.2
> > 1.1
> >
> >
> >
> >
> > ---------------------------------
> > 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
>
>
>
>
> ---------------------------------
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: logic:greaterThan tag - issue
Posted by Mad Shop <jm...@yahoo.com>.
Thanks Leon,
Big Decimal is our project requirement. Looks like the tld files under my WEB-INF directory are not correct. Can you please let me know the compatable nested tld files for struts1.2.7 version.
Regards
Leon Rosenberg <ro...@googlemail.com> wrote:
have you tried to use double instead?
Leon
On 8/9/07, Mad Shop wrote:
> Following is my actual code
>
>
>
>
>
> Greater Equal 1000
>
>
>
>
>
>
> 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 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
> 1.2
> 1.1
>
>
>
>
> ---------------------------------
> 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
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
Re: logic:greaterThan tag - issue
Posted by Leon Rosenberg <ro...@googlemail.com>.
have you tried to use double instead?
Leon
On 8/9/07, Mad Shop <jm...@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