now i have a ModelAndView object being returned from the controller which lists the paymentTransIds that i want to display as bold.
Now my problem is how do i iterate through this List being returned by controller and based on that decide to make the column bold or not.
well what present does is that it checks if the bean exists in scope.
<c:present name="mybean" property="beanproperty">
if condition is true then do something.
I think my question should have been how do i set a bean to the current _paymentTransId that i have initialized in <tr> so as to access my modelandview object in controller and then iterate through the list returned by the modelandview object
I have to pass the modelandview object to a pojo which is then accessed by the jsp as a bean. I am pretty new to this.
I thought my controller returns a modelandview object to jsp. but its apparently not so. the table already uses an iterator. so can I use an iterator within this to validate if the parameter that I have declared in the code above exists in the list returned?
Ok glad you got it figured out. In one of those links I posted I showed a sample @RequestMapping on a controller. Anything you put on the model should be accessible in the view using the syntax I also demonstrated in the same post.
I am sorry but I really don't understand what you are trying to do at all. What taglib is the c prefix bound to? I asked you in my last response to post your Spring Controller code, that would give me a better idea of what Spring is expecting. So far none of what you have posted is Spring related. I don't see any Spring tags in your JSP and I don't see any Controller code. Spring is very flexible and will allow a lot of things but from what I can see you are trying to do things way outside the accepted way.
I don't see any objects being bound to a bean in your jsp I don't see any forms being submitted, I don't see any ajax calls, I don't see you calling the server anywhere. If I did see these things I would not be able to tell you if is correct because you have not shown us your @RequestMapping in your controller. You need to TellTheDetails.