WDD_lec_33 - AddressBook using Servlets and Intro to JSP...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
    AddressBook using Servlets and Intro to JSP Lec - 33
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Servlets Example A part of  Address Book
Background image of page 2
    Design Process Step 1 – Create a database (AddressBook) Make a table named Person
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Design Process Step 2 – Make a PersonInfo class Three attributes: name, address, ph. No. Has Parameterized constructor Override toString() method Step 3 – Make a DAO class which contains  an establishConnection( ) method a searchPerson(string name) method that returns  PersonInfo object
Background image of page 4
    Design Process Step 4 – Write SearchPerson servlet Will take input for name to search in address book Submits the request to ShowPerson servlet Step 5 – Write ShowPerson servlet Recieves request from SearchPerson servlet Instantiate objects of PersonInfo and DAO class Call searchPerson method Show results
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
  package What is package? Examples:
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

WDD_lec_33 - AddressBook using Servlets and Intro to JSP...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online