Re: How to cast String to Number in JSTL EL ?

2004-01-03 Thread ....
For paging, take a look at the displaytag on sf.net. .V Jason Lea wrote: I had a similar problem (paging and JSTL) and managed to get it working. The c:set var=lastPageNo value=1/ code is setting the lastPageNo to a string and then later on it is doing a string concatenation on it so you get

Re: How to cast String to Number in JSTL EL ?

2003-12-29 Thread Francois Beausoleil
Thanks for the tip :) You are right. Maybe I should move these out of the JSP. Bye ! François On Sun, 28 Dec 2003 22:42:23 -0500, Kris Schneider [EMAIL PROTECTED] said: It's not a direct answer to your question, but it seems like the work you're doing is more suited to a servlet or

Re: How to cast String to Number in JSTL EL ?

2003-12-29 Thread Jason Lea
I had a similar problem (paging and JSTL) and managed to get it working. The c:set var=lastPageNo value=1/ code is setting the lastPageNo to a string and then later on it is doing a string concatenation on it so you get 13 instead of 4 JSTL will coerce it into an integer if you assign it this

How to cast String to Number in JSTL EL ?

2003-12-28 Thread Francois Beausoleil
Hi ! I have a slight problem. I am building a paged results browser, and I have a problem with my next action. The root of the problem is because JSTL thinks that some values are strings, and not numbers. The code I am running is: fmt:formatNumber var=lastPageNo value=${numberOfContacts /