工作遇到的问题和解决办法2

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了,这样就会报上面的错误,应该导入工程,并且构建一下!这样就不会有这样的错误了.

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值