Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:if else?

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to perform an else with a c:if or do you just have to provide a c:if with the opposite test?

Also, I thought I had it before, but is there a site with all the JSTL tags and depscriptions or how to use example for each tag? Similar to what ANT has on their site? I looked on the Jakarta site, but couldn't find it.

Thanks.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind, I found some info on sun's site and I am using c:choose and c:when and c therwise. Seems to work.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, the choose/when/otherwise construct is a bit "wordy", but it's what I usually use.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic