views:

654

answers:

3

I'm currently learning Java EE, or more specifically, Servlets and .jsp. In my programming, I already employ the Model-View-Controller model to write my code. And as far as I've googled, Apache Struts is just a server like Tomcat. So, what exactly is Apache Struts, in relation to Java, Java EE, and Servlet classes in Java EE?

+1  A: 

Wikipedia:

Apache Struts is an open-source web application framework for developing Java EE web applications. It uses and extends the Java Servlet API to encourage developers to adopt a model-view-controller (MVC) architecture.

skaffman
+3  A: 

Struts is NOT another server. Its an application framework. It is built on top of JSP and Servlet architecture. So it is an abstraction of the servlet environment.

Using a framework like struts has some advantages such as: many common features of applications are pre built so you don't have to do them yourself. Features such as validation. It also forces you to work according to some best practicve philosophy, in this case MVC.

Under the covers struts implement a few servlets to do the job. You the developer do not have to write servlets. You can focus on business logic instead.

Vincent Ramdhanie
The best answer so far.
Catfish
+3  A: 
McDowell