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>
请问各位大侠,该如何解决?在此感谢!
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>
请问各位大侠,该如何解决?在此感谢!
...全文
相关推荐
struts2 HelloWorld 例子工程包
纠结了好久后解决掉了struts2 的helloWorld程序一系列问题,步骤以及一些错误等在我的博文里。
struts2.0开发环境的搭建及HelloWorld的演示
struts2.0开发环境的搭建及HelloWorld的演示
struts2 helloworld
struts2框架最基本的代码。如果你想看看struts2最基本的样子,你个应该是你不错的选择。但前提是你得学过jsp/servlet
Struts2_HelloWorld
Struts2登陆小例子 内含struts-2.1.6的最新基本jar包 经本人测试运行正常 index.jsp为测试页
Struts2 HelloWorld
NULL 博文链接:https://cecily.iteye.com/blog/682149


