title: Generate name and value attribute dynamically in Struts 2
body: <p>I am migrating the code from Struts1 to Struts2</p>
  
  <h2>Struts1 code</h2>
  
  <pre><code>&lt;input type="text" value="&lt;c:out value="${serviceVO.notifList}"/&gt;" name="ServicesNotifList-&lt;c:out value="${serviceVO.globalId}"/&gt;#&lt;c:out value="${serviceVO.id}"/&gt;" size="50" maxlength="1000"/&gt;
  </code></pre>
  
  <h2>in Struts2</h2>
  
  <p>I tried but not working</p>
  
  <pre><code>&lt;c:set var="notifListTemp" value="ServicesNotifList-"&gt;&lt;/c:set&gt;
  &lt;c:set var="notifListTemp1" &gt;${notifListTemp}${serviceVO.globalId}&lt;/c:set&gt;
  &lt;c:set var="notifListTemp2" value="#"&gt;&lt;/c:set&gt;
  &lt;c:set var="notifListTemp3" &gt;${notifListTemp1}${notifListTemp2}${serviceVO.id}&lt;/c:set&gt;
  
  &lt;s:textfield theme="simple" value="${serviceVO.notifList}" name="${notifListTemp3}" 
   size="50" maxlength="1000"  /&gt;
  </code></pre>
  
  <p>where <code>serviceVO</code> is <code>display:table</code> id.</p>