struts 2.0(web工程Struts2_HelloWorld)初探报错

fengxiarong707 fengxiarong707 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
报错:
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>


请问各位大侠,该如何解决?在此感谢!
...全文
评论 14
收藏 已收藏
分享
返回顶部
fengxiarong707
Java EE 67,535 成员 225,843 内容