title: How to include a jsp inside another jsp using javascript
body: <p>I have a button logout. Once logout is clicked I need to show another page. How can I do this using JavaScript? Can anyone please help me?</p>
  
  <p>My Code:</p>
  
  <pre><code>&lt;s:form name="LogoutAction"
                  id="LogoutAction" action="logout"&gt;
      &lt;span class="inlayField2"&gt;
      &lt;s:a href="logout" cssClass="planTabHeader" id="logoutId"&gt; &lt;img src="../../KY/images/common/header/lock.png" alt="logout" style="border: none;background-color: transparent;" /&gt; &amp;nbsp;Log out&lt;/s:a&gt;&lt;/span&gt;
      &lt;/s:form&gt; 
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>$('#logoutId').click(function(event) {
  
      $('#logoutdiv').load('ConfirmationPopup.jsp');
  });
  </code></pre>