日期:2014-05-19  浏览次数:20664 次

新手 请高手指教
请求的时候出现这个问题 请高手指教!!!!

Unable to instantiate Action, NewsAction, defined for 'add' in namespace '/'NewsAction



<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<package name="default" namespace="/" extends="struts-default">
<action name="add" class="NewsAction" method="addNews">
<result name="success">success.jsp</result>
<result name="error">error.jsp</result>
</action>
</package>
</struts>

------解决方案--------------------
Unable to instantiate Action, NewsAction, defined for 'add' in namespace '/'NewsAction

不能实例化action,你找找你的怎么个实例化的,使用Spring了没有?贴出错的代码。,