title: How to Use @ResponseBody data to populate a table
body: <p>I Have a function in the controller of the MVC Project like this</p>
  
  <pre><code>@RequestMapping(value = "", method = RequestMethod.POST)
  @ResponseBody
  public GetOrdersByEmailRequest createRequest(@RequestParam String email1) {
  
      GetOrdersByEmailRequest getOrdersByEmailRequest = null;
      try {
          // LOG.info("Preparing Request for lookup Email :" + lookoupEmail);
          getOrdersByEmailRequest = new GetOrdersByEmailRequest();
          getOrdersByEmailRequest.setEmail(email1);
          getOrdersByEmailRequest.setFetchType(OrderDetailsFetchType.FETCH_WITH_SUBORDER_DETAILS);
          // getOrdersByEmailRequest.setPageSize(GETORDERSBYEMAIL_PAGESIZE);
          // getOrdersByEmailRequest.setRequestProtocol(Protocol.PROTOCOL_JSON);
          // getOrdersByEmailRequest.setResponseProtocol(Protocol.PROTOCOL_JSON);
          // getOrdersByEmailRequest.setStart(PAGESIZE_OFFSET);
          getOrdersByEmailRequest.setUserTrackingId(null);
          getOrdersByEmailRequest.setContextSRO(null);
  
      } catch (Exception e) {
          // TODO Auto-generated catch block
          // LOG.error("Error in preparing OMS Request",e);
      }
      return getOrdersByEmailRequest;
  
  }
  </code></pre>
  
  <p>So now when i use the submit button on the webpage the browser displays the jSON object . Now instead of displaying the object i want to use it and populate a table in the JSP File . How should i go about doing this .?</p>