I am trying to create a dynamic web project in Eclipse IDE that implements a CRUD
functionality and connects to a Film database in MySQL using the MVC pattern.
I have a Film class with the following attributes: int id; string title; string director; string date;
string genres; string characters; string synopsis; and with to string method.
I have the following methods in FilmDAO class: public ArrayList getAllFilms(), public Film
getFilmByID(int id), public ArrayList getFilmByTitle(string title), public boolean
updateFilm(Film film), public Boolean deleteFilm(int id), public Boolean insertFilm (Film film).
How do I write code for the following Servlets: 1. DeleteFilmServlet(do Post method to delete
film from database), 2. HomeServlet (do get method - to get all films from database and pass to
JSP). 3. InsertFilmServlet (do get method present web page with html form for inserting films
and do post method to process submitted form and insert film to db). 4. UpdateFilmServlet (do
get method present web page with html form for updating films and do post method process
submitted form: retrieve parameters and updata film in db).
Thanks.

I am trying to create a dynamic web project in Eclipse IDE that impl.pdf

  • 1.
    I am tryingto create a dynamic web project in Eclipse IDE that implements a CRUD functionality and connects to a Film database in MySQL using the MVC pattern. I have a Film class with the following attributes: int id; string title; string director; string date; string genres; string characters; string synopsis; and with to string method. I have the following methods in FilmDAO class: public ArrayList getAllFilms(), public Film getFilmByID(int id), public ArrayList getFilmByTitle(string title), public boolean updateFilm(Film film), public Boolean deleteFilm(int id), public Boolean insertFilm (Film film). How do I write code for the following Servlets: 1. DeleteFilmServlet(do Post method to delete film from database), 2. HomeServlet (do get method - to get all films from database and pass to JSP). 3. InsertFilmServlet (do get method present web page with html form for inserting films and do post method to process submitted form and insert film to db). 4. UpdateFilmServlet (do get method present web page with html form for updating films and do post method process submitted form: retrieve parameters and updata film in db). Thanks.