This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes c:if else? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » JSP
Bookmark "c:if else?" Watch "c:if else?" New topic
Author

c:if else?

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302
    
    6

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.


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302
    
    6

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

Joined: Jan 10, 2002
Posts: 62106
    
  68

Yeah, the choose/when/otherwise construct is a bit "wordy", but it's what I usually use.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: c:if else?