general question about tomcat and struts
Hello,
I am new to the J2EE framework and currently strengthening my skills on Servlets and JSP. right now I am focusing on HF Servlets & JSP book. I have a general question that involves Struts and Tomcat. Basically both are described as frameworks and containers. What is the significant difference between them? I have been looking at their web sites, but could perhaps someone explain in a few words their main uses and differences (on a high level)? and how they being used together.
Many thanks.
[524 byte] By [
DeChristoa] at [2007-11-27 0:59:41]

# 1
Tomcat is a Servlet Container (basically a web server that runs Java Servlets & JSP pages). Struts is an MVC framework for building web applications, which run inside of Tomcat or any servlet container or J2EE server for that matter.
Tomcat is likely the best all around server on the planet for doing the vast majority of web apps. It's fast, efficient, and straightforward and is mature and so forth.
Struts on the other hand was written by 'some guy' in a short amount of time. It's horribly documented, terribly confusing, and there are better options out there IMO. But it's a good skill to have I guess. Lots of people use it.
# 2
I don't think STRUTS is a container, it's development framework which allows you effectively separate presentation layer from the business layer. You are using STRUTS while developing your application. On the other hand Tomcat is a web container where you deploy and run your web applications.
it's two different species.
vs777a at 2007-7-11 23:34:08 >
