Server Technology PPNT User Manual Page 72

  • Download
  • Add to my manuals
  • Print
  • Page
    / 95
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 71
Java Servlets: Database Manipulation(4/5)
Retrieving data with Java
Connection connection = DriverManager.getConnection(...);
Statement statement = connection.createStatement();
ResultSet result = sta teme nt.e xecu teQu ery(
"SELECT * FROM " + dbms_db_table_);
...
while(result.next()){
String name = result.g etSt ring ("na me") ;
...
TR tabl e_r ow = new TR(true);
table_row.addElement((new TD(true)).addElement(nam e));
...
}
(72/95)
Page view 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 94 95

Comments to this Manuals

No comments