Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

บท5

190 views

Published on

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

บท5

  1. 1. 1. 2. 3. 83 4. 405 5.
  2. 2. J S P Ser vlet Membe rDAO Member sBean DBConne ct
  3. 3. SQL SQL 1. Insert query 2 Select query
  4. 4. Web Page
  5. 5. JSP WebContent --> New --> JSP file Search.jsp
  6. 6. Search.jsp Web Page
  7. 7. SearchServlet.java Package com.controller -- > New --> Servlet SearchServlet
  8. 8. SearchServlet..java Method doPost
  9. 9. SQL SELECT Table SELECT * FROM [table Name] SELECT * FROM membersbook
  10. 10. Table
  11. 11. SQL WHERE Table) SQL WHERE 1. Operators = (SELECT * FROM [Table Name] WHERE [Field Name] ='+ SELECT * FROM membersbook WHERE member_firstname
  12. 12. Operators = (
  13. 13. 2. LIKE SELECT * FROM [Table Name] WHERE [Field Name] LIKE ' % + + % ' SELECT * FROM membersbook WHERE member_firstname LIKE'%+name+%'
  14. 14. Operators = (
  15. 15. SearchServlet..java Class MemberDAO Combo box
  16. 16. Search.jsp

×