aspose file tools*
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
Author

Struts comes with Tomcat?

Vamsee Kanakala
Greenhorn

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?

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


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61224
    
  66

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


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

Joined: Jul 04, 2003
Posts: 1312
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/


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
satheesh krishnaswamy
Ranch Hand

Joined: Mar 17, 2004
Posts: 137
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


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?