Monday, January 19, 2009

When to Choose Struts2?

Wondering when to choose Struts2.x over Struts1.x?. Here are the tips:
- Your application demands view technology changes such as from JSP to FreeMarker or Flex or PDF then Struts2 is way to go.

- Your application consumes heavy AJAX functionalities. Struts2 supports heavy AJAX tags.

- Your request needs to go through set of pre-defined , pre-processors before hitting an action class. Struts2 interceptors will do all the pre-processing for You!.

- You want your action classes to be executed in non-web containers. Your Action classes are POJOs & do not depend or tied to web containers.

- Easy form validation. Struts2 XWork Validation Framework makes it easy by tieing up action class with validation XML. One Validation XML per action class.

Apart from above mentioned , Struts2 offers features such as Easy unit testing , Reduced XML configurations , No 'Form' beans , out-of-box Spring , SiteMesh/Tiles support. By and large , Struts2 aims at making web development easier & maintenable.

I recently worked on Struts2 based web application, and believe me, Struts2 is awesome.

1 comment: