struts 2.0(web工程Struts2_HelloWorld)初探报错
报错:
HTTP Status 404 - /Struts2_HelloWorld/HelloWorld
--------------------------------------------------------------
type Status report
message /Struts2_HelloWorld/HelloWorld
description The requested resource (/Struts2_HelloWorld/HelloWorld) is not available.
---------------------------------------------------
环境:
jakarta-tomcat-5.5.7
jdk 1.5
struts-2.0.9
eclipse 3.2
web工程Struts2_HelloWorld描述:
stuts.xml配置:
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<include file="struts-default.xml"/>
<package name="tutorial" extends="struts-default">
<action name="HelloWorld" class="tutorial.HelloWorld">
<result>HelloWorld.jsp</result>
</action>
</package>
</struts>
自建有HelloWorld.java、SayHello.jsp、Helloworld.jsp三个文件。
启动tomcat时,有个警告:
信息: Parsing configuration file [struts.xml]
2007-7-29 16:29:43 org.apache.struts2.config.Settings getLocale
警告: Settings: Could not parse struts.locale setting, substituting default VM locale
2007-7-29 16:29:45 com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory <clinit>
请问各位大侠,该如何解决?在此感谢!