Advertisement
Guest User

Untitled

a guest
Mar 9th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <form id="form1" name="form1" method="post" action="actutenan.jsp">
  2. <%
  3. consulta conexion = new consulta ("jdbc:oracle:thin:@localhost:1521:XE","pasaportes","oppasaportes");
  4. String consulta = "SELECT id_delegacion, ejemplo1, ejemplo2, ejemplo3 FROM combos WHERE id_delegacion ='2'";
  5. ResultSet rs = conexion.ejeSelect(consulta);
  6. ResultSetMetaData rsmd = rs.getMetaData();
  7. int col= rsmd.getColumnCount();
  8. for(int k=1;k<=col;k++){
  9. %>
  10. <td><h9> <%= rsmd.getColumnName(k) %></h9></td>
  11. <%
  12. }
  13. %>
  14. </tr>
  15.  
  16. <%
  17. while(rs.next()){
  18. %>
  19.  
  20. <form id="form1" name="form1" method="post" action="actutenan.jsp">
  21. <tr class="info">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement