• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

forEachToken

 
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In HFS page 465 the core action given as <c:forEachToken> but in jstl spec they are given as <c:forTokens>.
<c:forEachToken> is not working it throw an exception

but <c:forTokens> is working fine.

its a bug in HFS?
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
Thats an error in the book,
its c:forTokens, download the errata from www.wickedlysmart.com
<%
// this is just for a test, we must avoid to use scripting in jsps
String [] names={"one",two","three"};
request.setAttribute("names",names);
%>
<c:forTokens items="${names}" delims="," var="name">
${name}
</c:forTokens>
sami
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic