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 |
What is the difference between Servlet and Spring controller?
ReplyDeleteWhy we need to use Spring against Servlet????
Difference Between Servlet and JSP
ReplyDeleteThanks for sharing useful difference.
useful blog... thanks for sharing
ReplyDeletebest java j2ee training | java training center in chennai | java training institute in chennai | java j2ee training center in chennai