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!
September 29, 2008 at 10:43 am
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.
September 29, 2008 at 1:07 pm
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. :(
June 26, 2009 at 10:27 pm
Graet Thanks for providing demo..
July 18, 2009 at 8:50 am
You can find a tutorial on Struts 2 Annotation here.
October 6, 2009 at 4:55 pm
Where will you stop?