wood burning stoves 2.0
The moose likes Tomcat and the fly likes Struts comes with Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Struts comes with Tomcat?" Watch "Struts comes with Tomcat?" New topic

Struts comes with Tomcat?

Vamsee Kanakala

Joined: Jul 14, 2004
Posts: 5
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?

Because joy is one's fuel - Ayn Rand
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Vamsee Kanakala:
is struts a part of Tomcat?

Or do I have to download it separately?

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...

Co-author of SCMAD Exam Guide, Author of JMADPlus
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63862

You are assuming everyone who uses Tomcat wants to use Struts. Not by a long shot.

[Asking smart questions] [About Bear] [Books by Bear]
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Installing Struts with your servlet container

The Power of Three - Eclipse, Tomcat, and Struts

Java Developer, Thailand
satheesh krishnaswamy
Ranch Hand

Joined: Mar 17, 2004
Posts: 137

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.
With kind Regds

Regards,<br /> <br />Satheesh.K<br />-------------<br />SCJP 1.4<br />SCWCD 1.4
friso dejonge
Ranch Hand

Joined: Jul 11, 2002
Posts: 162
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.

swimming certificate (A & B), shoelaces diploma, and some useless java ones.
Bill Barbour
Ranch Hand

Joined: Dec 19, 2002
Posts: 35
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)?
I agree. Here's the link: http://aspose.com/file-tools
subject: Struts comes with Tomcat?
It's not a secret anymore!