jsp ファイルを送信すると、次のエラーが表示されます。
HTTP ステータス 404 - サーブレット アクションは利用できません タイプ ステータス レポート メッセージ サーブレット アクションは利用できません 説明 要求されたリソース (サーブレット アクションは利用できません) は利用できません。
私のアプリケーションは次のようになります。
+WebAppl
+src
+com.ss.user.actions.authentication
+IndexAction.java
+jsp
+index.jsp
+login.jsp
+web-inf
+struts-config.xml
+web-xml
+etc その他のファイル
index.jsp ファイルには、次のようなフォームがあります。
<form method="post" action="<%=request.getContextPath()%> /authentication/Index.do">
<input type="submit" value="PressMe"/>
</form>
struts-confif で、次のアクションを定義しました。
<action path="/authentication/Index" scope="request" type="com.ss.user.actions.authentication.IndexAction">
<forward name="success" path="/jsp/login.jsp" />
</action>
IndexAction.java
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
return mapping.findForward(SUCCESS);}
エラー404はファイルが見つからないことを意味し、おそらく指定されたパスに間違いがあることを知っていますが、それを理解できません. 誰でも私を助けることができますか?