title: How to reload the page without refresh
body: <p>I want to reload some content in my web page when i call that page.</p>
  
  <pre><code>&lt;jsp:include page ="/GetAllDetailsOfFollowing"  /&gt;&lt;br&gt;
  </code></pre>
  
  <p>I have called a servlet from a jsp page. But on the web page it is not completely executing. then i have to manually refresh the webpage then it will show all documents.
   How to solve this problem. Is there any method in jquery to reload this page immediately after reloading the web page
  This is my doGet method in servlet</p>
  
  <pre><code>protected void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException, IOException {
          Connection con = null;
          HttpSession session=request.getSession();
          String followingPerson=(String)session.getAttribute("followingPerson");
          String userName =(String)session.getAttribute("userName");
          PreparedStatement st = null;
          List dataListDetails = new ArrayList();
          List dataListTweets = new ArrayList();
          List dataListFollwers = new ArrayList();
          List dataListFollowing = new ArrayList();
          ResultSet rsForProfile = null, rsForTweets = null, rsForFollower = null, rsForFollowing = null;
          try {
              con = ConnectionManager.getConnection();
              String sql="select * from person where user_id=\""+followingPerson+"\"";
              //sql = "select * from person where user_id=\"ankur\"";
              // sql="select * from person where user_id=\""+followingPerson+"\"";
              st = con.prepareStatement(sql);
              st.executeQuery();
              rsForProfile = st.getResultSet();
  
              if (rsForProfile.next()) {
                  dataListDetails.add("First Name");
                  dataListDetails.add(rsForProfile.getString("firstName"));
                  dataListDetails.add("Full Name");
                  dataListDetails.add(rsForProfile.getString("fullName"));
                  dataListDetails.add("User Id");
                  dataListDetails.add(rsForProfile.getString("user_id"));
                  dataListDetails.add("Email Id");
                  dataListDetails.add(rsForProfile.getString("email_id"));
                  dataListDetails.add("Joined At");
                  dataListDetails.add(rsForProfile.getString("joined"));
  
              }
              request.setAttribute("dataListDetails", dataListDetails);
         } catch (Exception e) {
              e.printStackTrace();
          } finally {
              try {
                  rsForProfile.close();
                  rsForTweets.close();
                  rsForFollower.close();
                  rsForFollowing.close();
                  st.close();
                  con.close();
              } catch (SQLException s) {
  
              }
  
          }
  
  
          RequestDispatcher rd = request
                  .getRequestDispatcher("GetAllDetailOfFollowing.jsp");
          if (rd != null) {
              rd.include(request, response);
          }
  
      }
  </code></pre>
  
  <p>And this is my jsp which I am calling from jsp</p>
  
  <pre><code>&lt;body&gt;
  &lt;table border ="1" cellpadding="1" style="margin-left: 511px; margin-top: 56px;"&gt;
  
      &lt;%
          Iterator itr;
          List data =(List)request.getAttribute("dataListDetails");
          for(itr=data.iterator();itr.hasNext();){
      %&gt;
      &lt;tr&gt;
      &lt;td width="119"&gt;&lt;%=itr.next() %&gt;&lt;/td&gt;
      &lt;td width ="168"&gt;&lt;%=itr.next() %&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;%
          }
          request.removeAttribute("dataListDetails");
      %&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Basically I am including servlet in starting jsp and then that servlet including the another jsp. This last jsp will print one tale on the web page but when i will refresh the web page then it will be visible. Also tell how to remove scriplet from jsp page.</p>