title: struts taglib: set request parameter in jsp
body: <p>i iterate a list of news on a page with two buttons there: edit and view,so i want to set  news id to request scope to use it then in edit action, here is the form</p>
  
  <pre><code>&lt;html:form action="NewsAction"&gt;
          &lt;div class="news"&gt;
              &lt;fieldset&gt;
                  &lt;logic:iterate name="newsList" id="news"&gt;
                      &lt;legend&gt;
                          &lt;bean:write name="news" property="newsTitle" /&gt;
                      &lt;/legend&gt;
                      &lt;p&gt;
                          &lt;bean:write name="news" property="newsId"/&gt;
                          &lt;bean:write name="news" property="newsTitle" /&gt;
  
                          &lt;bean:write name="news" property="newsBrief" /&gt;
                          &lt;bean:write name="news" property="newsDate" /&gt;
                      &lt;/p&gt;
  
  
                      &lt;html:submit property="method"&gt;view&lt;/html:submit&gt;
                      &lt;html:submit property="method" value="edit" /&gt;
                      &lt;html:submit property="method"&gt;delete&lt;/html:submit&gt;
                  &lt;/logic:iterate&gt;
  
              &lt;/fieldset&gt;
          &lt;/div&gt;
      &lt;/html:form&gt;
  </code></pre>
  
  <p>i tried <code>&lt;html:hidden property="nnews" value="${news.newsId}"  /&gt;</code><br>
  and </p>
  
  <pre><code>&lt;jsp:setProperty property="newsId" name="news" param="newsInstanceId" /&gt;
  </code></pre>
  
  <p>using first one i got ${news.newsId} in request parameter, and using second null </p>