How to use JSON response in the form of JSTL?

Posted by HariKrishna on Stack Overflow See other posts from Stack Overflow or by HariKrishna
Published on 2014-08-24T10:01:02Z Indexed on 2014/08/24 10:20 UTC
Read the original article Hit count: 149

Filed under:
|

I am getting JSON response,now i need to construct a table using this response.The table may be contain more than one record and i know one way of doing this is using Jstl tags but not JSON response.Here is my jsp code

<div id="divHideAllergies" class="clone">
    <div class="copy">
       <div class="col-md-12">
           <div class="portlet box carrot ">
                <div class="portlet-title">
                    <div class="caption">
                        <i class="fa fa-medkit"></i> Allergies
                    </div>
                </div>
           <div class="portlet-body form">
                <div class="form-body">
                    <div class="form-group">
                       <label class="control-label col-md-3">Allergy Type:</label>
                          <div class="col-md-9">
                              <div class="input-group">
                                   <span class="input-group-addon"><i class="fa fa-medkit"></i></span>
                                   <select  class="form-control" id="allergy_type">
                                        <option selected value="">--Select One--</option>
                                             <option value="Drug">Drug</option>
                                             <option value="Environmental">Environmental</option                                                                                    <option value="Food">Food</option>
                                   </select>
                              </div>
                            </div>
                         </div>
                     <div class="form-group">
                        <label class="control-label col-md-3">Allergic to:</label>
                            <div class="col-md-9">
                                <div class="input-group">
                                   <span class="input-group-addon"><i class="fa fa-medkit"></i></span>
                                   <input type="text" class="form-control" name="first name" id="allergy_to"/>
                                </div>
                            </div>
                      </div>
                  </div>
              </div>
            </div>
          </div>
       </div>
    </div>
  </div>

© Stack Overflow or respective owner

Related posts about JSON

Related posts about jstl