我有一个Struts 2项目,其目录结构如下。但是当我试图在Tomcat 7上使用Eclipse运行这个项目时,它会给我带来404错误。

Struts.xml**:**
<?xml version="1.0" encoding="UTF-8"?>
<struts>
<action name="login" class="com.actions.LoginAction" method="execute">
<result name="success">/jsp/login.jsp</result>
</action>
</struts>login.jsp**:**
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login Page</title>
</head>
<body>
<s:form action="login" method="post">
Login name : <input type="text" value="name"/>
</s:form>
</body>
</html>在路径http://localhost:8080/StrutsPro/jsp/login.jsp上运行时,它给出了HTTP404,为什么?
https://stackoverflow.com/questions/16515490
复制相似问题