21. Model View Controller Using Servlets and JSPs
Sunday, January 23, 2011
Hi Folks !!
In this post I am going to give a brief idea about MVC Architecture using Servlets and JavaServerPages, so have fun !!
Create the directory structure as shown below in the pic !
After Creating the directory structure, write the fallowing code in index.jsp page as shown in the below picture.
In the same way write the code in view.jsp, Student.java and StudentServlet.java as given in the fallowing images !!
view.jsp
Student.java
StudentServlet.java
After writing the code, execute the project and observe the output !!
In this post I am going to give a brief idea about MVC Architecture using Servlets and JavaServerPages, so have fun !!
Create the directory structure as shown below in the pic !
After Creating the directory structure, write the fallowing code in index.jsp page as shown in the below picture.
In the same way write the code in view.jsp, Student.java and StudentServlet.java as given in the fallowing images !!
view.jsp
Student.java
StudentServlet.java
After writing the code, execute the project and observe the output !!
Labels:
MVC