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.
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
Post a Comment