Namen und Wertattribut in Struts 2 dynamisch generieren

Ich migriere den Code von Struts1 nach Struts2

Struts1 code
<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"/>
in Struts2

Ich habe versucht, aber nicht funktioniert

<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"  />

woserviceVO istdisplay:table Ich würde

Antworten auf die Frage(1)

Ihre Antwort auf die Frage