07年5月19日
遇到了一个
javax.servlet.jsp.JspException: Exception creating bean of class org.apache.struts.action.Actionform: {1}的错误,在网上查了一下,这是一位兄弟的错误原因分析
可能原因
lInstantiating Struts-provided Actionform class directly instead of instantiating a class derived off Actionform. This might occur implicitly if you specify that a form-bean is this Struts Actionform class rather than specifying a child of this class for the form-bean.
lNot associating an Actionform-descended class with an action can also lead to this error.
Cannot find ActionMappings or ActionformBeans collection
但是以上都不是我犯的错误,这可怎么办,折腾了我半天,最后终于知道自己为什么会犯这个错误,简直无颜以对了...
我的反错原因:
我在公司的elipse+myeclipse工程是在E盘里,在家的确实G盘里,当我把工程放在家里的时候,却一直出错,因为我在
导入工程的时候,是一直把工程放在workspace里,然后在eclipse里新建工程直接起个同名的就OK了,这样就会报上面的错误,应该导入工程,并且构建一下!这样就不会有这样的错误了.