Some of the important lessons that I have learnt with this sufferings are,
1. Java frameworks are not reverse compatible. I hate that.
3. Only use prescribed files by all means and do not try including any new stuffs before u know what it is as far as the java technology is concerned.
Any ways I am starting to getting used to this and here is my hello world to Struts 2.
1. Tomcat server version 6.0 or 6.0.33 needs to be installed. No other versions. Probably other versions in 6 might support but I am not sure
Following is the folder structure that you need to have
The lib directory should contain all of the following files
All the files that you find in the above screen shot are frame work files that comes with Struts 2 package version 2.1.2 I guess. You can google down with the names of the files to find the appropriate sub version of struts 2. Believe me it did not work with version 2.1.6.
Please don't blame me if you can do it better. I am very new to this technology J
You web.xml file should have the following code
The action name "helloworldAction" can be any name of your choice.
Now save your work, move your project to the tomcat server, by doing the following
After doing this click finish.
Now restart your tomcat server or simply start it if its not already running.
Now key in the following url in your browser. I did this one with the browser provided by eclipse it self
Note the differences in the above mentioned images,
Hope this helps J