ActionImpl.addToRequest(String, Object) lets your action add any
object to 'request scope'.
When you say 'check the value of' what do you mean exactly?
1) check to see if it's present?
2) check the state of the object, for example an integer in range
1..10, and so on?
3) something else?
In the case of #1, you can simply use JSTL to check-for-empty/null
In the case of #2, the validation is performed by the Model Object,
not in the JSP. For example, this Model Object has validation of its
data in its validateState() method :
http://www.web4j.com/fish/javadoc/src-html/hirondelle/fish/main/member/Member.html#line.16
This validation is performed every time you construct the Model Object
- either from user input, or from a database SELECT operation.
The Model Object is added by an Action :
http://www.web4j.com/fish/javadoc/src-html/hirondelle/fish/main/member/MemberAction.html#line.49
using the method :
ActionImpl.addToRequest(String, Object)
The String/name "ITEMS_FOR_LISTING" is provided by web4j as a mere
convenience, but you can of course use and String/name you want.
If this is not helpful, please provide more information.
Regards,
John O'Hanley