You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ra...@iflexsolutions.com on 2006/01/05 09:53:06 UTC

simple struts example : HTTP 404

 
Hi,
 
I have just started writting struts application,however i am getting a
HTTP 404 error.
 
Below is my index.jsp
 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>

<head>

<link href="<c:url value='/emp.css'/>" rel="stylesheet" type="text/css">

<title><fmt:message key="title.employeeApp"/></title>

</head>

<body>

<h1><fmt:message key="title.employeeApp"/></h1>

<br/>

<a href='<c:url value="setupEmployeeForm.do"/>'>Add An Employee</a>

</body>

</html>

 Here is my struts-config.xml :
 
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC

"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"

"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">

<struts-config>

<form-beans>

<form-bean name="employeeForm" type="emp_services.EmployeeForm"/>

</form-beans>

<action-mappings>

<action path="/setupEmployeeForm" 

forward="/employeeForm.jsp"/>

<action path="/insertEmployee"

type="emp_services.InsertEmployeeAction"

name="employeeForm"

scope="request"

validate="false">

<forward

name="success"

path="/confirmation.jsp"/>

</action>

</action-mappings>

<message-resources parameter="MessageResources" null="false"/>

</struts-config>

 

Could u let me know where I going wrong.

 

Kind regards,

 

Rakesh Bhat 

PrimeSourcing(tm) 

The Global IT Services  business from i-flex - "Add Value Reduce Risk"
www.iflexsolutions.com/services/services.asp

i-flex solutions limited - Bangalore

Phone : (080) 5759-6873

Email :  Rakesh.Bhat@ iflexsolutions.com

 

 


DISCLAIMER:
This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.