Struts 2 annotation sample WAR

Download my sample Struts 2 annotation sample war here.

For you who are new to this Struts 2 thing, you can actually do away with those XML config things.  Struts 2 uses JAVA Annotations as an alternative to XML when configuring the framework.

Here’s what you should do:

1. Download the sample annotation war

2. On tomcat, put it on webapp folder

3. Run tomcat with your localhost like this: http://localhost:8080/struts2annotation/

After that, for explanations about things and stuff, just read Dhydrated’s article on Struts 2 annotation. Im pretty lazy writing right now. Also, you might also be interested in my Struts 2 JSON sample if you are starting out on Struts 2.

By the way, please leave a comments/problems on running the samples, k? A lot of people download the war and don’t know if its having problems on their end.

Rock on!

5 Responses to “Struts 2 annotation sample WAR”

  1. I would appreciate if you could let me know any link or source where I can start learning how to use JSON based AJAX in struts. I spent my whole weekend only to realize that there is not even a single tutorial or examples place (intermediate and advanced) that allows us to use these nice javascript frameworks or AJAX libraries on struts.

  2. I agree, i still haven’t found any on the net that’s why i put up this sample. No luck on my side too. :(

  3. Graet Thanks for providing demo..

  4. You can find a tutorial on Struts 2 Annotation here.

  5. Where will you stop?

Leave a Reply