www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] how to access ModelAndView from jsp

  1. #1
    Join Date
    Aug 2012
    Posts
    5

    resolved [RESOLVED] how to access ModelAndView from jsp

    I have pasted snippet of the code below:

    Code:
    Code:
       <c:iterate name="list" id="payment" index="idx">
    	<tr class="gRowEven"
           
    	_paymentTransId="<c:write name="payment" property="claimPaymentTransId" />">
    
    <td class="col6"> <c:exists name="payment" property="property5"></td>
    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.

    I have a user defined tag lib as
    Code:
        <tag>
    		<name>present</name>
    		<tag-class>view.taglib.LogicPresentTag</tag-class>
    		<body-content>JSP</body-content>
    		<description>
    			Tests for the presence in either any scope of a bean.
    		</description>
    		<attribute>
    			<name>name</name>
    			<required>false</required>
    			<rtexprvalue>true</rtexprvalue>
    		</attribute>
    		<attribute>
    			<name>parameter</name>
    			<required>false</required>
    			<rtexprvalue>true</rtexprvalue>
    		</attribute>
    		<attribute>
    			<name>property</name>
    			<required>false</required>
    			<rtexprvalue>true</rtexprvalue>
    		</attribute>
    	</tag>
    Thanks
    I would appreciate any help

  2. #2
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,774

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles