私はStruts2の初心者です。私はStruts Webサイトのチュートリアルに従うことにしています。私はこのチュートリアルに従いました。私はそれでいくつかの問題を抱えています。私はEclipseで動的Webプロジェクトを作成しました。次に、チュートリアルに従いました。ただし、例を実行すると、次のエラーが発生します。
There is no Action mapped for namespace [/] and action name [hello] associated with context path [/Hello_World_Struts_2]. - [unknown location]
私は次のディレクトリ構造を持っています
そして、私の struts.xml ファイルは
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.devMode" value="true" />
<package name="basicstruts2" extends="struts-default" namespace="/">
<action name="index">
<result>/index.jsp</result>
</action>
<action name="hello" class="org.apache.struts.helloworld.action.HelloWorldAction" method="execute">
<result name="SUCCESS">/HelloWorld.jsp</result>
</action>
</package>
</struts>
ご回答ありがとうございます。