Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets Vs Struts

 
Sandipan Mukherjee
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between Servlets and Struts?Does Struts use Servlets in backend?please explain.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, there is no "versus". Struts is a Model 2 framework built on top of the Servlets and JSP technologies.
 
Vishal Ashtaputre
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey man,

servlets & struts are very different.

But struts internally uses servlets somewhere.
While using struts technology you don't have to create servlets.
It's job of struts itself. There are lot of clases in struts, some important are
Action,ActionServlet, ActionForm,ActionErrors,ActionMessages,ActionError,ActionMessage
 
Janakiram Gattupalli
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bone up on MVC first (the model-view-controller design pattern). A Servlet is a controller. Struts has its own Servlet and builds on standard functionality to also provide view (as well as controller) .
 
Narayanan Bala
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I get more explanation on Model-View-Control Architecture?
 
Narayanan Bala
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I get more explanation on Model-View-Control Architecture?
 
Rama Chandrika
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi narayan.

The architecture of the portal UI is based on the Model-View-Control (MVC) design pattern. The MVC paradigm allows you to separate the code that handles business logic from the code that controls presentation and event handling.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article might be helpful.
 
Narayanan Bala
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic