• Post Reply Bookmark Topic Watch Topic
  • New Topic

Append String using tag lib  RSS feed

 
saumil baxi
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Here is what I want to do .. I have two String variables .
<c:set var="a" value="abc" />
<c:set var="b" value="xyz"/>

Now I want a String variable which has the value "abcxyz" i.e need to append a + b . Can anyone tell me how to do ?

Thanks,
Saumil
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[ September 24, 2008: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could also do:, but my first example demonstrates using the tag body to set the value.
 
saumil baxi
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a million [] ..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!