Perhaps this page might provide the solution?

http://www.oreillynet.com/cs/user/view/cs_msg/32931

Wrong taglib uri's or wrong webapp specification in your web.xml.

Muz

On 2 Aug 2005, at 14:32, Marius Botha wrote:

You know your stuff hey :)

I believe I do use Tomcat 5 (running inside JBoss 3.2) and as a result have their JSTL (looks like 1.1) and JSP-2.0.jar. Where do I find or can I check
if I have the TLD for the functions library (so I can include it if
missing)? At the moment I am including the TLD'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 are using either Tomcat 4.1.x and / or Standard 1.0x
for your JSTL.  EL functions are part of the JSTL 1.1 spec (JSP 2.0)
and aren't supported on Tomcat 4.1.x or Standard 1.0x (JSP 1.2 and JSTL
1.0 respectively).  If you want to use the fn:length you need to use
JSTL 1.1 and hence Standard 1.1 and / or Tomcat 5.x.  (I think those
versions are correct, someone correct me if I'm wrong).

If you cant change the version of Tomcat / JSTL you use:
1. You could alter your myController.getOpenActivitiesForResource
method to return a class that extends list to provide a getSize() (and
hence your original <c:out value="${myList.size}"/> would work.
2. Find some other Tag lib that lets you output list sizes.
(unstandard from the sandbox does this)
3. Just use a scriptlet <%= ((MyControllerClass)
pageContext.findAttribute("myController")).getOpenActivitiesForResource (
).size() %>.

Muz


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Murray Steele
Senior Developer

Peoples Archive
w: http://www.peoplesarchive.com
t: 0207 323 0323
d: 0207 631 9147

This email has been scanned by Postini.
For more information please visit http://www.postini.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to