java - 404 when running project through eclipse on Tomcat -


i have struts 2 project following directory structure. when try run project using eclipse on tomcat 7, gives me 404 error.

enter image description here

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> 

on running @ path http://localhost:8080/strutspro/jsp/login.jsp, gives http 404, why?

examine web.xml instead.

else put .jsp files in webcontent folder


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -