Current File : //home/obabain/public_html/abc/tech_view.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
           <%@ include file="Connection.jsp" %>
     <%   String c_id=request.getParameter("c_id"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<style type="text/css">
.rrow
{
 display: inline-block;
   margin: 30px;
}    
</style>
</head>
<%@include file="master.jsp" %>

<body>
    <div class="row">
        <div class="col-md-9">
            <div class="panel panel-default">
             <!--  <div class="panel-heading main-color-bg" style="background-color:green;color:#00FF00;height:40px;"> -->
              <div class="panel-heading main-color-bg">
                    <h3 class="panel-title">View</h3>
              </div>
              <div class="panel-body">

   <table class="table table-bordered">
    <thead>
      <tr class="success">
        <th>Sl.No</th>
        <th>Element</th>
        <th>Composition</th>
      </tr>
    </thead>
    <tbody>
      <%
       try
       {
    	Statement st=con.createStatement();
        ResultSet rs = st.executeQuery("select * from technical where c_id="+c_id+"");  
        while(rs.next())
        {
     %>
    
      <tbody>
         <tr>
             
     <td scope="col">
         <%=rs.getString("t_id") %>
     </td>
     
       <td scope="col">
         <%=rs.getString("element") %>
     </td>

     <td scope="col">
        <%=rs.getString("composition") %>
     </td>
     
     </tr>
    </tbody> 
      <%
        }

       } 
       catch (Exception e) 
       {
        e.printStackTrace();
       }
    %>
         
  
    </tbody>
  </table>
   
  <div class="modal-footer" id="contact_submit">
       <input type="button" value="Back" style="margin-right:620px" class="btn btn-primary pull-left" onclick="goBack()"/>
        <!-- <a class="btn btn-primary" href="customerNew.jsp">Reset</a>
        <button type="submit" class="btn btn-primary" onclick="validatename()">Save Changes</button> -->
      </div> 
     
             
              </div>
              <br>
            </div>
          </div>
        </div>
        <script type="text/javascript">
  function goBack() 
  {
   window.history.back(); 
  };
</script>
</body>
</html>