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
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 is what you are
My requirement is really a bit different. I have an expression, which
returns a List, the size of which I would like to display. I.e. I have
${myController.activitiesForResource}, which returns a list.
If I try c:out
value=${fn:length(${myController.activitiesForResource})}/ I get an error
saying
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
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
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
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's a servlet 2.4 app it
will revert to Servlet 2.3/JSP 1.2 (and trying to use JSTL 1.1 with JSP
1.2 probably
Hello,
I have the following:
xtags:parse
io:http action=post url=http://www.test.com; input=true output=true
io:param name=textc:out value=${keyword} //io:param
/io:http
/xtags:parse
For some reason the first call is successful, but any calls after that
displays the same information.
I have installed the datagrid 1.2 taglib and have read the documentation
and looked at the examples but none of these two sources specifically
show how to use the datagrid taglib for showing the results of a
database query.
Can anyone give an example of how to tie the datagrid into showing