Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:forToken ? or c:forEachToken ?

 
muthu moorthy
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer Please ?

<c:forEachToken> is found in HF. But i dont find <c:forToken>. thats why i post this .

In an HTML form, the user is asked to provide a list of keywords in a single text field. Which tag in the core JSTL tag library must be used to separate the submitted string into individual words?

A <c:split>
B <c arse>
C <c:choose>
D <c:forTokens>
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSTL there <forEach> and <forTokens> only.
<forEach> is just line for loop
<forTokens> is used to loop string which contains words seperated by tokens.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just go thru the specs
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic