【发布时间】:2014-12-22 05:52:54
【问题描述】:
我正在将代码从 Struts1 迁移到 Struts2
Struts1 代码
<input type="text" value="<c:out value="${serviceVO.notifList}"/>" name="ServicesNotifList-<c:out value="${serviceVO.globalId}"/>#<c:out value="${serviceVO.id}"/>" size="50" maxlength="1000"/>
在 Struts2 中
我试过了,但没用
<c:set var="notifListTemp" value="ServicesNotifList-"></c:set>
<c:set var="notifListTemp1" >${notifListTemp}${serviceVO.globalId}</c:set>
<c:set var="notifListTemp2" value="#"></c:set>
<c:set var="notifListTemp3" >${notifListTemp1}${notifListTemp2}${serviceVO.id}</c:set>
<s:textfield theme="simple" value="${serviceVO.notifList}" name="${notifListTemp3}"
size="50" maxlength="1000" />
其中serviceVO 是display:table id。
【问题讨论】:
标签: jsp struts2 jstl struts ognl