wood burning stoves 2.0*
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
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: 60822
    
  65

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: 60822
    
  65

This article might be helpful.
Narayanan Bala
Greenhorn

Joined: Jan 23, 2007
Posts: 3
Thank You very much.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets Vs Struts
 
Similar Threads
How to detect the territory of a request ?
what is difference between servlet and struts in terms of web application.
Interview with JP Morgan Chase - Java
Is there any difference between servlet request object and servletActionContext request object
Single Thread model in practice