Servlets http状态404 servlet操作不可用

Servlets http状态404 servlet操作不可用,servlets,struts,action,http-status-code-404,Servlets,Struts,Action,Http Status Code 404,提交jsp文件时出现以下错误: HTTP状态404-Servlet操作不可用 类型状态报告 消息Servlet操作不可用 说明请求的资源Servlet操作不可用不可用 我的应用程序看起来像: +WebAppl +src +com.ss.user.actions.authentication +IndexAction.java +jsp +index.jsp +login.jsp +web inf +struts-config.xml +web xml +等一些其他文件 在index.jsp文件中

提交jsp文件时出现以下错误:

HTTP状态404-Servlet操作不可用 类型状态报告 消息Servlet操作不可用 说明请求的资源Servlet操作不可用不可用

我的应用程序看起来像:

+WebAppl +src +com.ss.user.actions.authentication +IndexAction.java +jsp +index.jsp +login.jsp +web inf +struts-config.xml +web xml +等一些其他文件

在index.jsp文件中,我有一个表单,如下所示:

<form method="post" action="<%=request.getContextPath()%> /authentication/Index.do">
<input type="submit" value="PressMe"/>  
</form>
我知道错误404意味着找不到文件,可能在给定的路径中有错误,但我无法找出它。有人能帮我吗?

请检查你的.xml文件,如果有语法错误,你也会看到这个错误。
检查缺少的标记/不完整的标记。

表单操作属性中的空格真的存在吗?你为什么不使用Struts表单标签?我查过了,空间不在那里。。我刚刚发现了一个小错误,将action=/authentication/Index.do>更改为action=/authentication/Index.do>,但它根本不起作用。。老实说,我以前从未使用过Struts表单标签。。不知道它看起来是什么样子但是你认为如果我只更改表单标签会有什么不同吗?不知道,我问你为什么不使用它,因为它a知道Struts操作,b知道应用程序上下文。
<action path="/authentication/Index" scope="request" type="com.ss.user.actions.authentication.IndexAction">
            <forward name="success" path="/jsp/login.jsp" />
</action> 
public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {
        return mapping.findForward(SUCCESS);}