title: Dynamic Divs in jsp
body: <p>I'm trying to create a page that will be rendered in steps. A user selects a certain option and the next div is dynamically rendered on the jsp page depending on the values selected. for example</p>
  
  <p><strong>MyPage.jsp</strong></p>
  
  <pre><code>&lt;input type="button" onclick="somejsfunction();" value="Select Choice" /&gt;
  </code></pre>
  
  <p><code>somejsfunction()</code> issues a <code>POST</code> to the server and sets some values in the session. I then need to render a div in <code>MyPage.jsp</code>. I'm thinking i could always just spit out the HTML code from the post call and then append it to the document body in <code>somejsfunction()</code> but i was wondering if there is a cleaner way to do this? Thanks</p>