title: Add new content to JSP page without losing existing dynamically generated content
body: <p>I am developing a basic web-application where after adding some input data on my first.jsp file, the data is processed via a servlet (say AnalyzeServlet.java) and resulting data is displayed in results.jsp. Here is how I am displaying the output in results.jsp file:</p>
  
  <pre><code>    &lt;c:when test="${userChoice == 'student'}"&gt;
      &lt;table border="1" width=100%&gt;
      &lt;th&gt; STUDENT NUMBER&lt;/th&gt;
      &lt;th&gt; STUDENT NAME&lt;/th&gt;
      &lt;th&gt; STUDENT ADDRESS &lt;/th&gt;
      &lt;c:forEach items="${results}" var="result"&gt;
          &lt;tr&gt;
              &lt;td&gt;${result.number}&lt;/td&gt;
              &lt;td&gt;${result.name}&lt;/td&gt;
              &lt;td&gt;${result.address}&lt;/td&gt;
           &lt;/tr&gt;
      &lt;/c:forEach&gt;
     &lt;/table&gt;
    &lt;/c:when&gt;
  </code></pre>
  
  <p>Below is the text box where an input is entered and clicking on Submit should get additional content.</p>
  
  <pre><code>     &lt;div id="resultPageForm1"&gt;
  &lt;form name="BForm1" action="NewServlet" method="POST"&gt;
      &lt;input type="hidden" name="bChoice" value="grades"&gt;
      &lt;h3&gt; Paste name of a student in the text box and click on Submit to get grades&lt;/h3&gt;
      &lt;input type="text" name="input"&gt;
      &lt;input type="submit" class="button" value="GET GRADES"&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  &lt;h3&gt;Grades are displayed below&lt;/h3&gt;
  &lt;p&gt;${Output1}&lt;/p&gt;
  </code></pre>
  
  <p>I am providing the user with an option that a student name can be entered from the above output into a text box and upon clicking submit, the grades for this semester should be displayed in a text box (i.e. div). However, the key is that existing output (i.e. list of student number, address, name) should still be visible. However, currently, the grades are getting displayed and above data is getting lost and I have to press the back arrow on browser to retrieve this data. So my question is how can I update a current page that already has some dynamically generated content without losing it?</p>