Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

make a table of data from db in jsp

<%@ page import="java.sql.*" %>
<% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); %>
<HTML>
       <HEAD>
       <TITLE>The View Of Database Table </TITLE>
       </HEAD>
       <BODY BGCOLOR="cyan">
       <H1>The View Of Database Table </H1>
       <%
           Connection connection = DriverManager.getConnection(
            "jdbc:odbc:data");
           Statement statement = connection.createStatement() ;
          ResultSet resultset = statement.executeQuery("select * from table1") ;
       %>
      <TABLE BORDER="1">
      <TR>
      <TH>ID</TH>
      <TH>Name</TH>
      <TH>City</TH>
      <TH>State</TH>
      <TH>Country</TH>
      <TH>Email</TH>
      <TH>Interest in Game</TH>
      </TR>
      <% while(resultset.next()){ %>
      <TR>
       <TD> <%= resultset.getString(1) %></td>
       <TD> <%= resultset.getString(2) %></TD>
       <TD> <%= resultset.getString(3) %></TD>
       <TD> <%= resultset.getString(4) %></TD>
       <TD> <%= resultset.getString(5) %></TD>
       <TD> <%= resultset.getString(6) %></TD>
       <TD> <%= resultset.getString(7) %></TD>
      </TR>
      <% } %>
     </TABLE>
     </BODY>
</HTML>
Comment

PREVIOUS NEXT
Code Example
Javascript :: In React Router v6, activeStyle will be removed and you should use the function style to apply inline styles to either active or inactive NavLink components. 
Javascript :: array.includes is not a function react 
Javascript :: how to jump one page to another on specific tab elementor 
Javascript :: reference to javascript array 
Javascript :: md5 online decrypt 
Javascript :: await multiple promises 
Javascript :: how to get second low value in js 
Javascript :: how to generate password hash and a salt in nodejs 
Javascript :: reactrouter 
Javascript :: include nested childs 
Javascript :: cloning an element 
Javascript :: blue pring GUI react 
Javascript :: forEach ActiveLink 
Javascript :: js hk 
Javascript :: repidme 
Javascript :: how to create a tag object in jQuery 
Javascript :: fetch Mongodb find() results with Backbone 
Javascript :: what is jsonpickle in python 
Javascript :: element non empty jquer y check 
Javascript :: remove all elements contained in another array 
Javascript :: Will Yield An Object 
Javascript :: https://graph.instagram.com/14.0/17841450694979740 
Javascript :: new date is not working in react js 
Javascript :: onSeek video getting paused 
Javascript :: react random string 
Javascript :: sort array based on subarray value 
Javascript :: how to use script tag in javascript 
Javascript :: javascript splice method 
Javascript :: change placeholder color in material ui 
Javascript :: jquery select vs create syntax 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =