> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of John York
> 
> How does the JSTL forEach tag handle this? Glancing at it, it 
> looks like 
> you always need to specify ${} around everything. If you 
> don't, it just 
> assumes that what was specified for 'items' is the item itself:
> 
> <c:forEach items="item1" var="item">
>   <c:out value="${item}"/>
> </c:forEach>
> 
> prints out 'item1', which kinda surprised me.

I believe that the forEach tag will let you do comma delimited items -
i.e. items="1,2,3" - so that's why this works.  I think it makes sense
for the regular displaytag to allow name and the EL tag to allow "name"
for named attributes in some scope - and then use "list" or "items" for
grabbing something like the sql:query tag's rows.  It seems to make more
sense to me.  It's probably not *that* big of a deal, but it should be
somewhat intuitive - or we're going to spend a lot of time supporting it
(regardless of documentation).

My $0.02.

Matt




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to