Your SlideShare is downloading. ×
  • Like
บทที่3
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

บทที่3

  • 145 views
Published

 

Published in Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
145
On SlideShare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1.  Username,Password, ,
  • 2. • action servlet
  • 3.  Servlet NewFile2.jsp
  • 4. SQL) SQL) SQL Select query Update query Insert query Delete query
  • 5. JSP Servlets and Database
  • 6. Dynamic Web Project Servlet " DataServlet.java"
  • 7. publicclass controller{ DBconnectdb = new DBconnect(); Statement stmt; ResultSet rs = null; public int insert(String sql) { try{ db.createConnection(); stmt = db.getStatement(); stmt.executeUpdate(sql); } catch (SQLException ex) { Logger.getLogger(controller.class.getName()).log(Level.SEVERE,null,ex); return 0; } db.closeConnection(); return 1; }
  • 8. UserDAO Mysql
  • 9. display