Name:
Location: Bangalore, India

Monday, October 22, 2007

Displaying Date using Struts tag

Instead of hard-coding the date format in format attribute we are specifying it in formatKey in application resources and using bundle property to retrieve it.

<logic:iterate id="row" name="RequestForm" property="objSearchList">
<tr class="rmt-tableRow_oddBG">
<td nowrap class="rmt-tableCellTxt"> <bean:write name="row" bundle="abc" formatKey="common.format.date" property='maxMaturityDate' /></td>
<td nowrap class="rmt-tableCellTxt"> <bean:write name="row" property='tbuName' /></td>
</tr>
</logic:iterate>


To hide a control display from user









0 Comments:

Post a Comment

<< Home