title: Struts 2: Action result. How show in browser address line link on jsp?
body: <p>For example on our <code>index.jsp</code> contains only one link:</p>
  
  <pre><code>&lt;a href="&lt;s:url action='viewBook'/&gt;"&gt;Your Book&lt;/a&gt;
  </code></pre>
  
  <p>In browser on <code>index.jsp</code> page I see this link: </p>
  
  <pre><code>http://localhost:8080/project/viewBook.action
  </code></pre>
  
  <p>when I click on this link opened page and in browser address line I see next address:</p>
  
  <pre><code>http://localhost:8080/project/viewBook.action
  </code></pre>
  
  <p><code>struts.xml</code> contains next lines for action listTicket:</p>
  
  <pre><code>    &lt;action name="viewBook" class="BookAction" method="view"&gt;
          &lt;result&gt;pages/book.jsp&lt;/result&gt;
      &lt;/action&gt;
  </code></pre>
  
  <p><strong>My question: what I must change, that instead viewBook.action in browser I see link to the Page:</strong></p>
  
  <pre><code>http://localhost:8080/project/book.jsp
  </code></pre>
  
  <p>I try set for result tag type="redirect". But in this case - page empty.</p>