wiflish
Loving Life! Loving Coding!
posts - 98,comments - 98,trackbacks - 0
错误日志:
There is no Action mapped for namespace / and action name HelloWorld. - [unknown location]
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)

解决:
将struts.xml文件放到/WEB-INF/classes下面,解决问题。
struts.xml文件要包含:<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">这部分声明。
posted on 2007-10-04 12:36 想飞的鱼 阅读(482) 评论(0)  编辑  收藏 所属分类: error and solution

只有注册用户登录后才能发表评论。


网站导航: