I am well aware of how to build an "if(confition) ... else ..."
statment using JSTL and the <choose>
, <when>
and <otherwise>
tag.
However I would be interested to know the design decision(s) that lead to force this slightly heavy and verbose construction on developpers even for simple if-else statements and not to include a tag that would work together with <s:if>
(though I think the choose tag is much more useful and elegant for multiple choices, kind of like a powerful switch(...) statement or something like that).
Struts2 has an <s:else>
tag, so I don't think it was a technical impossibility...
If anyone can enlighten me I'd appreciate it.
Edit : and by the way, does anybody think that "otherwise" is really better thant "else" ? (I am no native english speaker so there might be different "shades of if" that I am not getting here - anyway I'd rather type "else" :-)