Thanks http://blog.csdn.net/fl772333621/archive/2009/11/30/4906975.aspx
Plug-in Download
https://dl.getdropbox.com/u/201666/nbstruts2.tar.bz2
Unzip the following two files:
org-netbeans-modules-web-frameworks-struts2.nbm
org-netbeans-modules-web-frameworks-struts2-library.nbm
Struts2 version corresponds Struts2.1.6
Adding process
Run NB6.8 -> Tools -> Plugins -> Downloaded -> Add Plugins ...--> Add 2 nbm file after decompression -> Install.
So OK.
-----------------------
Then, Libraries in Struts2 Core jar package replaced with Struts2.1.8 jar package, ready to look at hello world. Encountered two problems.
". Org" First class package name in web.xml StrutsPrepareAndExecuteFilter less, throw "ClassNotFoundException" run-time;
The second is automatically generated struts.xml located in the WEB-INF directory, application runtime can not find the file in the WEB-INF / classes, throwing "There is no Action mapped for namespace ...".
To solve the above two problems, hello world normal.