aspose file tools*
The moose likes Servlets and the fly likes Servlets Vs Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets Vs Struts" Watch "Servlets Vs Struts" New topic
Author

Servlets Vs Struts

Sandipan Mukherjee
Greenhorn

Joined: Dec 07, 2006
Posts: 8
What is the difference between Servlets and Struts?Does Struts use Servlets in backend?please explain.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61043
    
  66

Yes, there is no "versus". Struts is a Model 2 framework built on top of the Servlets and JSP technologies.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vishal Ashtaputre
Greenhorn

Joined: Nov 18, 2006
Posts: 14
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


SCJP 1.4 , SCWCD 5.0
Janakiram Gattupalli
Greenhorn

Joined: Jul 30, 2006
Posts: 8
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

Joined: Jan 23, 2007
Posts: 3
Can I get more explanation on Model-View-Control Architecture?


Regards,<br />Narayanan.K.B
Narayanan Bala
Greenhorn

Joined: Jan 23, 2007
Posts: 3
Can I get more explanation on Model-View-Control Architecture?
Rama Chandrika
Greenhorn

Joined: Feb 14, 2007
Posts: 1
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

Joined: Jan 10, 2002
Posts: 61043
    
  66

This article might be helpful.
Narayanan Bala
Greenhorn

Joined: Jan 23, 2007
Posts: 3
Thank You very much.
 
Don't get me started about those stupid light bulbs.
 
subject: Servlets Vs Struts