title: How to open one jsp from another through struts
body: <p>How to open <strong>One jsp from another</strong> through <strong>Struts</strong>?</p>
  
  <p>For example,</p>
  
  <blockquote>
    <p>I have 2 JSPs, Page1.jsp &amp; Page2.jsp. </p>
    
    <p>Page1.jsp <strong>does not contain</strong> any Form.</p>
    
    <p>Page2.jsp <strong>contains a Form</strong>.</p>
    
    <p>I need a link on <strong>Page1.jsp</strong> which <strong>when clicked</strong> takes me to <strong>Page2.jsp</strong>.</p>
  </blockquote>
  
  <p>What are the <strong>Actionmappings</strong> needed to be <strong>added</strong> to <strong>struts-config.xml</strong>?</p>
  
  <p><hr>
  Update:</p>
  
  <p>I tried adding these lines in <strong>Page1.jsp</strong> </p>
  
  <blockquote>
  <pre><code>&lt;html:link page="Page2.do"&gt;Page2&lt;/html:link&gt;
  
  &lt;a href="Page2.do"&gt;Page2&lt;/a&gt;
  </code></pre>
  </blockquote>
  
  <p>In <strong>struts-config.xml</strong>, the following <strong>Action-mapping</strong></p>
  
  <blockquote>
  <pre><code>&lt;action path="/Page2"
  parameter="Page2.jsp"
  type="org.apache.struts.actions.ForwardAction"/&gt;
  </code></pre>
  </blockquote>
  
  <p><br></p>
  
  <blockquote>
    <p>The <strong>"href"</strong> one works, while the one with <strong>"html:link" does not</strong> take me to <strong>Page2.jsp</strong>. <br></p>
    
    <p><strong>Why is that?</strong></p>
  </blockquote>