Hi everybody,

I want to know the difference between jsp and struts.
Advantage of these two. I expect from all.

Thanks for your effort.

its like asking difference between tree and branches or leafs..


struts is a framework ,for MVC pattern this is incorporated with ActionServlet.
without Struts we can Design MVC.it provides TAG library support for JSP.

in MVC

M - Model - the classes you write that make your application unique
V - View - JSP
C - Controller - Struts

JSP is Technology which is View(presentation) layer of MVC pattern.
A JSP page is converted to a Java servlet by the servlet engine(TOMCAT,JBOSS etc,), so in a very direct way, it is always a servlet that executes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.