Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: Jsp 2, tag files and collections...

Erik Beijnoff

2004-02-26


>Nope - just a collection. Here is an example of the problem (tested
with tomcat 5.0.19) :
>...

Strange. Although I don't have any problems reading or writing jsp in
the old syntax, my hands on experience with it togheter with EL is
somewhat limited, since I write my pages exclusively as jsp documents
(xml). Your code seems alright to me. Only difference I can see from my
example is this:

<%@(protected)" %>

<jsp:directive.attribute name="objects"
                type="java.lang.Object"
                required="true"/>

Where I declare the type and you don't.

It might be that the "old" jsp style behaves in a different manner that
I'm not aware of, and that it translates into some sort of simpler
non-object aware level on parameters, thereby just invoking toString()
for all of them?

Have you tried to write your tag as a jsp document (xml) as in my
example to see if you can get to the type information from there?

Regards Erik Beijnoff

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


©2008 junlu.com - Jax Systems, LLC, U.S.A.