Originally posted by Johann Evans:
Thx!
What is the common workaround / solution if one should like to evaluate for two or more values like in my problem scenario?
There are a couple of ways you can do this. It can get kind of cumbersome but here are some options:
1)
AND - use nested logic:equals tags. Place the code you want to execute inside the innermost logic:equal tag. It will only execute if both conditions are true.
2a)
OR - check the condition twice. Obviously this isn't an optimal solution but will do in a pinch.
2b)
OR - evaluate the condition and set a variable based on the outcome (for example "true" if the OR condition is true, "false" if it is false). Evaluate that variable with your logic:equals tag.
3) Use the JSTL. I'm not too familiar with it, but I believe they have a more robust set of conditional tags. The Struts gurus are even recommending you use JSTL tags when appropriate, so you don't have to feel like you're doing something taboo by going this route.
HTH