RE: How to print an "int" with a c:out tag?

2005-08-03 Thread Christian Taylor
From: Marius Botha [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 03, 2005 6:52 AM To: 'Tag Libraries Users List' Subject: RE: How to print an "int" with a c:out tag? Thanks guys, I tried that and got a new error (below). I will probably just go the scriptlet ro

Re: How to print an "int" with a c:out tag?

2005-08-03 Thread Murray Steele
As far as I can tell the for the fn taglib should probably be: /WEB-INF/fn.tld If fn.tld isn't in the WEB-INF of your webapp you should probably do a search on your filesystem for the file and copy it into your WEB-INF. It should be present *somewhere* on your system, most likely in the

RE: How to print an "int" with a c:out tag?

2005-08-03 Thread Marius Botha
ugust 2005 07:59 To: Tag Libraries Users List Subject: Re: How to print an "int" with a c:out tag? My next guess was going to be one thing mentioned on the page Murray links to below. Regardless of whether you are using Tomcat 5, JSTL 1.1 and JSP 2.0... if your web.xml doesn't say it&#x

Re: How to print an "int" with a c:out tag?

2005-08-02 Thread Christian Taylor
s > > > > -----Original Message- > > From: Murray Steele [mailto:[EMAIL PROTECTED] > > Sent: 02 August 2005 02:31 > > To: Tag Libraries Users List > > Subject: Re: How to print an "int" with a c:out tag? > > > > > > I suspect that yo

Re: How to print an "int" with a c:out tag?

2005-08-02 Thread Murray Steele
anks again. Marius -Original Message- From: Murray Steele [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 02:31 To: Tag Libraries Users List Subject: Re: How to print an "int" with a c:out tag? I suspect that you are using either Tomcat 4.1.x and / or Standard 1.0x for your JSTL. EL f

RE: How to print an "int" with a c:out tag?

2005-08-02 Thread Marius Botha
x27;s in my WAR project and specify them in the web.xml file. Thanks again. Marius -Original Message- From: Murray Steele [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 02:31 To: Tag Libraries Users List Subject: Re: How to print an "int" with a c:out tag? I suspect that you a

Re: How to print an "int" with a c:out tag?

2005-08-02 Thread Murray Steele
le parsing custom action attribute "value" with value "${fn:length(activityCtrl.openActivitiesForResource)}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported. -Original Message- From: Christian Taylor [mailto:[EMAIL PROTECTED] Sent: 02 Au

RE: How to print an "int" with a c:out tag?

2005-08-02 Thread Ranendra
I reckon, u should use c_rt.tld instead of c.tld. -Original Message- From: Marius Botha [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 5:37 PM To: 'Tag Libraries Users List' Subject: RE: How to print an "int" with a c:out tag? Ok, I feel like an idio

RE: How to print an "int" with a c:out tag?

2005-08-02 Thread Marius Botha
quot;${fn:length(activityCtrl.openActivitiesForResource)}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported. -Original Message- From: Christian Taylor [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 01:38 To: Tag Libraries Users List Subject: Re: How to print an &quo

Re: How to print an "int" with a c:out tag?

2005-08-02 Thread Chandramohan Mani
use I think size() will return the size of your list. -rgds chandru On 8/2/05, Marius Botha <[EMAIL PROTECTED]> wrote: > > Hi there, > > Just a basic question. I am trying to print out the size() of a List, like > the tag below. > > > > But I am getting the following error: "An error occ

Re: How to print an "int" with a c:out tag?

2005-08-02 Thread Murray Steele
You probably don't need the nested ${}. Try value="${fn:length(myController.activitiesForResource)}"/> instead. Muz On 2 Aug 2005, at 12:34, Marius Botha wrote: If I try value="${fn:length(${myController.activitiesForResource})}"/> I get an error saying "EL expressions are not supported".

Re: How to print an "int" with a c:out tag?

2005-08-02 Thread Christian Taylor
r >saying "EL expressions are not supported". Any ideas? > >Thanks, > >Marius > >-Original Message- >From: Christian Taylor [mailto:[EMAIL PROTECTED] >Sent: 02 August 2005 01:08 >To: Tag Libraries Users List >Subject: Re: How to print an "int" wit

RE: How to print an "int" with a c:out tag?

2005-08-02 Thread Marius Botha
s, Marius -Original Message- From: Christian Taylor [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 01:08 To: Tag Libraries Users List Subject: Re: How to print an "int" with a c:out tag? Hi Marius, Check out the fn:length() function, this is what you are looking for. size()

RE: How to print an "int" with a c:out tag?

2005-08-02 Thread Marius Botha
Thanks, I'll try that. Cheers, Marius -Original Message- From: Christian Taylor [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 01:08 To: Tag Libraries Users List Subject: Re: How to print an "int" with a c:out tag? Hi Marius, Check out the fn:length() function, this

Re: How to print an "int" with a c:out tag?

2005-08-02 Thread Christian Taylor
Hi Marius, Check out the fn:length() function, this is what you are looking for. size() is a method and you cannot call methods directly from JSTL (only getters and setters), but the fn taglib provides a function for length of Collections and strings. See the JSTL 1.1 documentation for more inform