Struts2 我需要知道这里出了什么问题

Struts2 我需要知道这里出了什么问题,struts2,tomcat7,Struts2,Tomcat7,我正在努力学习Struts2框架。 我从网站上获得了HelloWorld示例: `www.vaannila.com/struts/struts-tutorial/struts-tutorial-using-eclipse-1.html 突出显示的代码显示为警告: s:redirect forward=“helloWorld”/> 警告如下: 在此行找到多个批注: -未知标记(bean:write)。 -未知标记(bean:write) 我在index.jsp文件中得到了与代码相同的警告: 当

我正在努力学习Struts2框架。 我从网站上获得了HelloWorld示例:


`www.vaannila.com/struts/struts-tutorial/struts-tutorial-using-eclipse-1.html

突出显示的代码显示为警告:


s:redirect forward=“helloWorld”/>

警告如下:

在此行找到多个批注:
-未知标记(bean:write)。
-未知标记(bean:write)

我在index.jsp文件中得到了与代码相同的警告:

当我运行tomcat时,我在控制台中得到以下信息。我知道我的雄猫在跑,但我该如何纠正呢

2012年6月13日下午1:12:28 org.apache.catalina.core.AprLifecycleListener init

**INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32;**

**Jun 13, 2012 1:12:28 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:StrutsExample1' did not find a matching property.**

Jun 13, 2012 1:12:28 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-bio-8080"]

Jun 13, 2012 1:12:28 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-8009"]

Jun 13, 2012 1:12:28 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 735 ms

Jun 13, 2012 1:12:28 PM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

Jun 13, 2012 1:12:28 PM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.27

Jun 13, 2012 1:12:31 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["http-bio-8080"]

Jun 13, 2012 1:12:31 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["ajp-bio-8009"]

Jun 13, 2012 1:12:31 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 2586 ms
是struts 1.x吗?您必须在struts 2.x中使用

请参见
是struts 1.x吗您必须在struts 2.x中使用


请参见

我无法正确理解您的问题,因为根据控制台输出,S2似乎没有问题。此外,我建议从S2网站www.vaannila.com/struts/struts tutorial/struts-tutorial-using-eclipse-1.htmlaha.下载示例应用程序。这与S1有关,我不建议在S2中使用它,S2为此提供了等效的标记,并且它们与它们很好地集成。@VolkerK www.vaannila.com/struts/struts-tutorial/struts-tutorial-using-eclipse-1.html我从上述站点下载了该示例,并遵循了确切的过程。在index.jsp和helloWorld.jsp文件中,我得到了uri的错误消息。所以我在这两个文件中将uri改为“/struts tags”。我开始发现标记bean:write和bean:redirect的错误,警告说“未知标记”,我是新手,需要一些帮助来纠正这个问题。我使用EclipseIndigo和tomcat7As,如前所述,这些标签可能来自S1,现在您使用的是S2,在jsp
中,您只需要有以下几行代码,我无法正确理解您的问题,因为根据控制台输出,S2似乎没有问题。此外,我建议从官方S2网站www.vaannila.com/struts/struts tutorial/struts-tutorial-using-eclipse-1.htmlaha.下载示例应用程序。这就是问题所在与S1相关,我不建议在S2中使用它,S2为此提供了等效的标记,并且它们与S1集成得很好。@VolkerK www.vaannila.com/struts/struts-tutorial/struts-tutorial-using-eclipse-1.html我从上述站点下载了该示例,并遵循了确切的过程。在index.jsp和helloWorld.jsp文件中,我得到了uri的错误消息。所以我在这两个文件中将uri改为“/struts tags”。我开始发现标记bean:write和bean:redirect的错误,警告说“未知标记”,我是新手,需要一些帮助来纠正这个问题。我使用EclipseIndigo和tomcat7As,正如前面所说的,这些标记可能来自S1,现在您使用的是S2,在jsp