我想要用到struct的date标签,要用到它的一个方法,不过这么给它值?如果直接viewmodel里面的值
<s:date name="变量名"> 就可以了
不过这里用了foreach 把变量给notiSimple里面的时间,再给么date标签?
<s:date name="#notiSimple.notiDate" nice="true" />
<s:date name="#notiSimple.notiDate" format="yyyy-MM-dd hh:mm "/>
<s:date name="notiSimple.notiDate" format="yyyy-MM-dd hh:mm "/> <c:forEach var="notiSimple"
items="${loadNotiLiVM.page.pageContent}">
<tr>
<td class="table_NoticeloadList"><a 
                            href="<s:url action="loadNotiAction" namespace="/pem"/>?notiId=${notiSimple.notiId}">${notiSimple.notiTitle}</a></td>
<td class="table_notiSimple">${notiSimple.userid}</td>
<td class="table_notiSimple">${notiSimple.notiDate}

<s:date name="#notiSimple.notiDate" nice="true" />
<s:date name="#notiSimple.notiDate" format="yyyy-MM-dd hh:mm "/>
<s:date name="notiSimple.notiDate" format="yyyy-MM-dd hh:mm "/>
    <s:bean var="now" name="java.util.Date"></s:bean>
<s:date name="#now"/>
</td>
</tr>
</c:forEach>