본문 바로가기

나 어제 배웠다/Spring3

taglib bean:define 사용법

<logic:iterate id="list" property="pointViewList" name="pointForm"> 
    <bean:define id="point_date" property="point_date" name="list"/>
    <bean:define id="amt" property="amt" name="list"/>
    <bean:define id="add_point" property="add_point" name="list"/>
    <bean:define id="use_point" property="use_point" name="list"/>
    <bean:define id="total_point" property="total_point" name="list"/>
    <tr>
       <td><bean:write property="rnum" name="list"/></td>
       <td><bean:write property="company_name_s" name="list"/></td>
       <td><%=CommonUtil.getDateMask(point_date.toString(), "-")%></td>
       <td><logic:equal value="1" property="point_type" name="list">적립</logic:equal>
           <logic:equal value="2" property="point_type" name="list">환급</logic:equal></td>
       <td><%=tCommLib.setComma(amt.toString())%></td>
       <td><logic:equal value="1" property="point_type" name="list"><font color="red"><%=tCommLib.setComma(add_point.toString())%></font></logic:equal>
           <logic:equal value="2" property="point_type" name="list"><font color="blue"><%=tCommLib.setComma(use_point.toString())%></font></logic:equal></td>
       <td><%=tCommLib.setComma(total_point.toString())%></td>
       <td><logic:equal value="1" property="service_type" name="list">견적구매</logic:equal>
           <logic:equal value="2" property="service_type" name="list">쇼핑몰</logic:equal>
           <logic:equal value="3" property="service_type" name="list">도서</logic:equal>
           <logic:equal value="4" property="service_type" name="list">의약품</logic:equal>
           <logic:equal value="5" property="service_type" name="list">입찰</logic:equal>
           <logic:equal value="6" property="service_type" name="list">공동구매</logic:equal>
           <logic:equal value="7" property="service_type" name="list">설계용역</logic:equal></td>
       <td><bean:write property="point_note" name="list"/></td>
       <td><bean:write property="estimate_code" name="list"/> </td>
       <td><bean:write property="reg_date" name="list"/></td>
       <td><bean:write property="upt_date" name="list"/></td>
      </tr>
 </logic:iterate>

'나 어제 배웠다 > Spring3' 카테고리의 다른 글

post & get 한글처리  (0) 2014.02.28
jQuery 단일건 조회/저장 - Struts  (0) 2013.07.31
Using MyBatis 3 with Spring 3 Using Mapper XML Files  (0) 2011.04.29
ValidationForm Sample  (0) 2011.04.08
SimpleForm  (0) 2011.04.08