my dog learned polymorphism
The moose likes Servlets and the fly likes Servlets Vs Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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: 56549
    
  14

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56549
    
  14

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Servlets Vs Struts
 
Similar Threads
Single Thread model in practice
what is difference between servlet and struts in terms of web application.
How to detect the territory of a request ?
Interview with JP Morgan Chase - Java
Is there any difference between servlet request object and servletActionContext request object