Adam,

JSP 2.0 introduces the notion of functions within EL, and in step with that release, JSTL 1.1 will include some standard functions including size. There are early releases like Tomcat 5.0 and Resin 3.0 that give you some features of JSP 2.0, although I haven't tried either. Hopefully the specs will get finalized to get these standards out there soon.

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]

Adam Hardy wrote:
Hi Billy,

I don't know about this one. Maybe someone more guru-like will step up with an answer 8-)

I'm not quite sure why EL doesn't like this but I think it's because the List class is not a javabean - presumably EL looks for getSize() rather than the actual size(), but that doesn't explain why it's complaining about an integer.


Adam



On 09/17/2003 02:19 AM Billy Bacon wrote:


I need to get the size (as an int) of a java.util.List I have. The following
doesn't work....


<c:out value="Size = ${browseForm.map.colInfoList.size}"/>

It gives me the following exception...

ServletException in:/jsp/browseQueueBody.jsp] An error occurred while
evaluating custom action attribute "value" with value "Size =
${browseForm.map.colInfoList.size}": The "." operator was supplied with an
index value of type "java.lang.String" to be applied to a List or array, but
that value cannot be converted to an integer. (null)'


Does anyone know how I could get the size of the List?

- Billy -


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







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



Reply via email to