Tuesday, May 24, 2011

Comparision between JSP/Servlet,Struts and Spring framework

Here is the comparision between JSP/Servlet,Struts and Spring framework. This difference is explained in the terms of View (JSP),Controller (Action) , Model & Configuration File.

Platform
View
Controller
Model
Configuration Files
JSP and Servlet
JSP
Extends HttpServlet
doPost()
doGet()
POJO
web.xml
Struts
JSP
Extends ActionSupport
Init()
Execute()
Validate()
Input()
POJO
web.xml
struts.xml
Spring
JSP
Extends Controller
handleRequest()
POJO
web.xml
*-servlet.xml
(applicationContext.xml)
Struts and Spring
Integration
JSP
Extends ActionSupport
POJO
web.xml
struts.xml
applicationContext.xml

3 comments: