This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

fn:split - Weid behavior

 
Thai C. Tran
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe I am missing something, but can anyone explain to me why the code

print out the value "abcdefgh@@" instead of "abcdefgh@@INTERNAL_SPLITTAG@@VG@@INTERNAL_SPLITTAG@@a" ???!?!?!?
 
Thai C. Tran
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, it was supposed to be

 
Thai C. Tran
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok. Problem solved ! I just checked out the source code of jstl and realize that they use StringTokenizer (!!!). Better to make a custom tag
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic