level 11
我按照书上写滴配置src里头的struts.xml代码如下
<struts>
<package name="itcast" namespace="/test" extends="struts-default">
<action name="helloworld" class="cn.itcast.action.HelloWorldAction"
method="execute">
<result name="success">/WEB-INF/page/hello.jsp</result>
</action>
</package>
</struts>
web.xml如下
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
然后访问localhost:8080/HappyTimes/test/helloworld出现404错误,那个Happytimes是我工程的名字。。。然后不知道哪里错了,求指教啊,而且我发现webroot下的jsp也全部访问不了
2013年07月30日 14点07分