Java Mailing List Archive

http://www.junlu.com/

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

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

Mark Roth

2004-02-26


Yes, the default value for the type attribute of the <%@(protected) %>
directive in tag files is java.lang.String since that's by far the most
common type of parameter passed to tag files.

Incidentally, the default value for the body-content attribute of the
<%@(protected)
your tag file. Saves a few keystrokes :)

---
Mark Roth, Java Software
JSP 2.0 Specification Lead
Sun Microsystems, Inc.


Kimpton, C (Chris) wrote:
> Hi Erik,
>
>
>>Only difference I can see from my example is this:
>
>
>><%@(protected)" %>
>
>
>><jsp:directive.attribute name="objects"
>
>                 type="java.lang.Object"
>                 required="true"/>
>
> That was it - I added the type="java.util.Collection" to my attribute
> definition and bingo - I can access the objects...
>
> Thanks for that.
> Chris
> _____________________________________________________________
>
> This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. If this email contains an offer, that should be considered as an invitation to treat.
> _____________________________________________________________
>
> ===========================================================================
> 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

===========================================================================
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.