首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

生手 请高手指教

2012-09-11 
新手 请高手指教请求的时候出现这个问题 请高手指教!!!!Unable to instantiate Action, NewsAction,define

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

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了没有?贴出错的代码。,

热点排行