Logic Tags Example
Present / Not Present
Cookie
Session cookie is present.
UNKNOWN cookie is not present.
Parameter
The parameter is present
Bean
'testBean' is present.
'anotherTestBean' is not present.
'fred' property is not present on 'testBean'
'stringValue' property is present on 'testBean'
Empty / Not Empty
'items' was found.
'items' is empty
Comparison tags
intValue == 7
intValue >= 7
intValue >= 6
intValue > 6
intValue <= 7
intValue <= 8
intValue < 8
stringValue matches 'world'
stringValue does not match 'earth'
Iteration
Book list:
- Programming Jakarta Struts
- Struts in Action
- Professional Struts Applications
- Struts Kick Start
- Mastering Jakarta Struts
- The Struts Framework
- Struts Fast Track
Book list (entries 3-5):
- Professional Struts Applications
- Struts Kick Start
- Mastering Jakarta Struts
Checking for and displaying messages
Errors:
Global errors:
- This is a global error #1
- This is a global error #2
Errors for 'test':
Messages:
- This is global message #1
- This is global message #2
Messages for 'test':
- This is a simple message.