title: How to encode a parameter with a url in struts?
body: <p>A list of books is displayed on the page. When a user clicks a book, its detail page is opened. Now the problem is that I need to encode each book's id with the detail page url.</p>
  
  <p>The link to detail page is /loadDetailForm.do. If a book has id=23, the link should appear as /loadDetailForm.do?id=23.</p>
  
  <p>I am pasting code here:</p>
  
  <pre><code>&lt;logic:notEmpty name="BrowseForm" property="books"&gt;
                  &lt;logic:iterate id="book" property="books" name="BrowseForm" type="com.nms.bks.app1.domain.Book"&gt;
                          &lt;p&gt;&lt;html:link action="/loadDetailForm" styleClass="btn_blue"&gt;&lt;bean:write name="book" property="title"/&gt;&lt;/html:link&gt;&lt;/p&gt;
                  &lt;/logic:iterate&gt;
              &lt;/logic:notEmpty&gt;
  </code></pre>
  
  <p>Thanks</p>