I am sure you heard of Struts in your car. Here is a simple definition from the dictionary:

1. a rod or bar forming part of a framework and designed to resist compression.
That struts or suspension is part of a framework for shock absorption in your car.

The one I am talking about here, one from Apache, is a software framework in itself. Struts is a MVC framework that helps you build Java based web applications quickly. If you have programmed in Java JSP or Servlets you know the difficulties in implementing a simple page. Struts makes it a little easier and a good way to standardize all your pages.

Apache Struts came out in 2006 and like anything else, there was a 2.0 soon after. Current stable release is Struts 2.5.

If you are curious to know more about Struts, here are some links to get you started:

http://viralpatel.net/blogs/category/struts/

This is a great blog to follow, if you are doing Java. Viral Patel writes a lot about Java. I like his tutorial on Struts below. It’s easy to follow and more hands one. Thank you, Viral

http://www.javatpoint.com/struts-2-tutorial

Great tutorial site. I like their step-by-step approach. I used this site for a lot of tutorials on Java and web programming.

http://www.tutorialspoint.com/struts_2/

Another great tutorial site. I think, they have tutorials for everything under the sun. This one talks about Struts-2.

Here is one more to do Struts in Netbeans IDE:

https://netbeans.org/kb/docs/web/quickstart-webapps-struts.html

There are some big differences in the way Struts1 and Struts2 are implemented. For one Struts1 was based on Java Servlet API, where as, Struts2 can even be a POJO. As the Java technology get better, we will see the framework get improved/simplified. I think, Struts2 uses annotations to simplify the interfaces. Please see here for a comprehensive list of the differences.

I have used Struts in many of my projects and intend to put together a tutorial here for your reference. Please come back and visit.

If you have any questions about Struts in general, feel free to post it as a comment below.

Advertisements