Today, when struts, encountered java.lang.NullPointerException:Module ' null ' not found this error, depressed for half a day,
It turns out there's no configuration in the Web.xml file, plus < servlet >
< Servlet-name > Action </servlet-name >
< Servlet-class > Org.apache.struts.action.ActionServlet </servlet-class >
<!--init-param >
< param-name > Config </param-name >
< Param-value >/Web-inf/struts-config.xml,
/Web-inf/struts-config2.xml
</param-value >
</Init-param-->
< Init-param >
< param-name > Config </param-name >
< Param-value >/Web-inf/struts-config.xml
</param-value >
</Init-param >
< Load-on-startup > 2 </load-on-startup >
</servlet >
Plus just fine, if you have this problem, you can try this way. Eclipse is really inconvenient, and can not find the 3.1.2 struts plug-in is really inconvenient, or feel jbuilder good ...