Getting objects from model
I have a JSP view which is passed a model consisting of several business objects. I have logic defined within my business objects and can access them through "is" methods, ie: isClosed() : boolean.
How do I obtain these objects from the model so that I can then perform a test of the object's state? For example, in my controller I create a Map consisting of an object Car and this is passed to my JSTL view via the ModelAndView object. I need to display a link in my view only if Car.isRunning() is true.
I've tried <c:if test="${model.car.isRunning()}">...</c:if> but that didn't work. I'm new to JSP and JSTL programming, so I don't know if this is a Spring or a JSTL question.
Thanks!
smv