首页 > 其他 > 详细

ognl.OgnlException: target is null for setProperty 异常

时间:2014-09-25 22:49:58      阅读:240      评论:0      收藏:0      [点我收藏+]

这个异常是因为struts.xml配置文件中action的name属性写错了:

<action name="register"class="org.apache.struts.helloworld.action.Register" method="execute">
            <result name="success">/thankyou.jsp</result>
</action>

name属性应该和类的名字一样。

或者也有可能是配置文件中有重名的action。

 

ognl.OgnlException: target is null for setProperty 异常

原文:http://www.cnblogs.com/jyjsjd/p/3993719.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!