Can you do an if-then-else statement inside a JSP expression?
EDIT : Specifically I was looking for a JSP solution, not a JSTL solution. But some JSTL s
If you are using JSTL you can do choose-when-otherwise.
For more information on JSTL try here.