• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts comes with Tomcat?

 
Vamsee Kanakala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a pretty basic question - is struts a part of Tomcat? Or do I have to download it separately? If it is a separate component, why is it so? Almost everybody uses Struts these days, and both are from Apache. Aren't they better off integrated into Tomcat as one piece?
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vamsee Kanakala:
is struts a part of Tomcat?

No
Or do I have to download it separately?

Yes
If it is a separate component, why is it so?

Divide and Conquer technique is used. Different groups in Apache is responsible for each of them.
Aren't they better off integrated into Tomcat as one piece?

Some people got better JSP and Servlet Engine better than those of Tomcat... So those who want to use Strust alone might not want Tomcat as a part of Struts, or vice versa...

Hope this helps...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are assuming everyone who uses Tomcat wants to use Struts. Not by a long shot.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Installing Struts with your servlet container
http://struts.apache.org/userGuide/installation-tc.html

The Power of Three - Eclipse, Tomcat, and Struts
http://javaboutique.internet.com/tutorials/three/
 
satheesh krishnaswamy
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Actually struts becomes the basis of the evolution of MVC II patterns.It is the seperate framework and hence has nothing to do with the MVC I patterns where JSP,Servlets typically followed.

Coming to the Tomcat,yes it will support the struts provided you install the struts.jar file into your \\src\Tomcat 5.0\server\webapps\admin\WEB-INF\lib\struts.jar.Only then the Tomcat will recognise your sruts file.

Bye any other queries are welcome.
Thanks
With kind Regds
Satheesh.K
 
friso dejonge
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
they are used for different purposes, in the same field of play however.

Tomcat is used for displaying on the web, as being the container (more or less) in which applications can run.
The application can be written with struts, which is the framework that uses follows the MVC pattern.

Both are free to use, and more information can be found on the apache website.
 
Bill Barbour
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is a separate component, why is it so?


Why add the bloat of the struts classes if you don't need them because either you are using a different framework, or no framework at all(some "quick and dirty" web application)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic