23. CRUD Operations Using MVC

Sunday, January 23, 2011 Posted by Sudarsan
Welcome Folks !!!

Have a look at the fallowing images for CRUD(CREATE, RETRIEVE, UPDATE and DELETE) operations performed on a Database using Servlets and JSPs in MVC architecture.

Create the directory structure as shown below !!

Directory Structure


After creating the directory structure, develop the fallowing resources which are shown in the fallowing images !!

Create.jsp


View.jsp



PartI- ControllerServlet.java


PartII- ControllerServlet.java


Part I-Databas.java


Part II-Databas.java


Student.java


After creating the above file, develop the Database in JavaDB and create a table called studentdetails with the fallowing column namew


1.student_name
2.Student_class
3.Student_fee
4.Student_adminno


Then Add derbyclient.jar to the project, and perform CRUD operations on the database.

That's all for now Friends !!!

Keep visiting the blog for the latest Posts !!!!
Labels:
  1. Hi Sudarsan

    if u can provide the sources for the exmaples(scripts and netbeans projects) u used in u r post that will be greatly useful

    thanks
    siva

  2. i support siva kalidindi in this issue

  3. Siva Kalidindi and sripad by double clicking the image we can see the code very clearly(one of the way to see the code just my suggestion only) .

    Thank u

Post a Comment