struct-config.xml问题
各位大虾:
我下载了一个G-Roller,在Eclipse下编译并且部署到Tomcat中,但是当我从浏览器访问的时候,却发生如下错误:
17:24:07,558 ERROR RequestProcessor[processActionCreate]:330 - No action instance for path /user could be created
org.xml.sax.SAXParseException: Attribute "autowire" must be declared for element type "bean".
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
.................
struts-config.xml中的
<action
path="/user"
type="groller.application.www.action.UserAction"
parameter="method" >
<forward name="LIST" path="/listUsers.jsp" />
</action>
该如何添加autowire?