Rakesh,

I think you should have following doctype in your struts-config.xml 
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts 
Configuration 1.2//EN" "
http://struts.apache.org/dtds/struts-config_1_2.dtd";>

Currently you have following doctype:
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts 
Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>

Please check this in your struts.jar file also. Doctype which is you are 
using is for struts-config_1_1.dtd.

Best Regards
Sunil Sahu
Sr. Software Engineer
Keane India Ltd
Gurgaon





Pazhanikanthan Periasamy <[EMAIL PROTECTED]> 
01/05/2006 03:21 PM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
<[EMAIL PROTECTED]>
cc
<user@struts.apache.org>
Subject
RE: simple struts example : HTTP 404








Are you sure that the Application Server did deploy the webapp and
configure the Struts XMLs during startup?

Have you configured (in web.xml) to mandatorily validate the Struts
Configuration files during startup by the Action Servlet?


Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (India) Pvt. Ltd.,
Madras - 600 006
Mob: 9884321672
Extn: 4307



-----<[EMAIL PROTECTED]> wrote: -----


To: <[EMAIL PROTECTED]>, <user@struts.apache.org>
From: <[EMAIL PROTECTED]>
Date: 01/05/2006 03:36PM
Subject: RE: simple struts example : HTTP 404


Yes sir.



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


-----Original Message-----
From: Pazhanikanthan Periasamy
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 3:16 PM
To: Struts Users Mailing List
Cc: Rakesh Bhat-IC
Subject: RE: simple struts example : HTTP 404


Have u configured your web.xml with the Strust Action Servlet? Have u
associated a URL Pattern as *.do?



Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (India) Pvt. Ltd.,
Madras - 600 006
Mob: 9884321672
Extn: 4307



-----<[EMAIL PROTECTED]> wrote: -----


To: <user@struts.apache.org>
From: <[EMAIL PROTECTED]>
Date: 01/05/2006 03:32PM
Subject: RE: simple struts example : HTTP 404


Now I changed this,early it was
http://localhost:8080/Emp_App/setupEmployeeForm.do

This is not working also.


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


-----Original Message-----
From: Pazhanikanthan Periasamy
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 3:10 PM
To: Rakesh Bhat-IC
Cc: Rakesh Bhat-IC; user@struts.apache.org
Subject: RE: simple struts example : HTTP 404



http://localhost:8080/Emp_App/WEB-INF/setupEmployeeForm.do

WHY does WEB-INF pattern in the URL ? Have you protected all your
resources?

If not, It should be like
http://localhost:8080/Emp_App/setupEmployeeForm.do

This should work


Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (India) Pvt. Ltd.,
Madras - 600 006
Mob: 9884321672
Extn: 4307



-----<[EMAIL PROTECTED]> wrote: -----


To: <[EMAIL PROTECTED]>
From: <[EMAIL PROTECTED]>
Date: 01/05/2006 03:24PM
cc: <user@struts.apache.org>
Subject: RE: simple struts example : HTTP 404


See after I click on below link in index.jsp

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

Below is the url.

http://localhost:8080/Emp_App/WEB-INF/setupEmployeeForm.do



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


-----Original Message-----
From: Pazhanikanthan Periasamy
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 3:01 PM
To: Struts Users Mailing List
Cc: Rakesh Bhat-IC
Subject: RE: simple struts example : HTTP 404


Kindly send the URL thru which u are accessing it from the Browser. Unless
we see that we cant debug.



Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (India) Pvt. Ltd.,
Madras - 600 006
Mob: 9884321672
Extn: 4307



-----<[EMAIL PROTECTED]> wrote: -----


To: <user@struts.apache.org>
From: <[EMAIL PROTECTED]>
Date: 01/05/2006 03:14PM
Subject: RE: simple struts example : HTTP 404


Yes,sir.I am accessing it thru your browser.


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


-----Original Message-----
From: Pazhanikanthan Periasamy
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 2:28 PM
To: Struts Users Mailing List
Cc: Rakesh Bhat-IC
Subject: Re: simple struts example : HTTP 404


You have not specified how you are accessing it thru your browser.



Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (India) Pvt. Ltd.,
Madras - 600 006
Mob: 9884321672
Extn: 4307



-----<[EMAIL PROTECTED]> wrote: -----


To: <user@struts.apache.org>
From: <[EMAIL PROTECTED]>
Date: 01/05/2006 02:23PM
Subject: 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.
All information in this communication, including attachments, is strictly
confidential and intended solely for delivery to and authorized use by the
addresses(s) identified above, and may contain privileged, confidential,
proprietary and/or trade secret information entitled to protection and/or
exempt from disclosure under applicable law. If you are not the intended
recipient, please take notice that any use, distribution or copying of 
this
communication, and/or any action taken or omitted to be taken in reliance
upon it, is unauthorized and may be unlawful. If you have received this
communication in error, please notify the sender and delete this
communication from your computer.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] All
information in this communication, including attachments, is strictly
confidential and intended solely for delivery to and authorized use by the
addresses(s) identified above, and may contain privileged, confidential,
proprietary and/or trade secret information entitled to protection and/or
exempt from disclosure under applicable law. If you are not the intended
recipient, please take notice that any use, distribution or copying of 
this
communication, and/or any action taken or omitted to be taken in reliance
upon it, is unauthorized and may be unlawful. If you have received this
communication in error, please notify the sender and delete this
communication from your computer.
All information in this communication, including attachments, is strictly
confidential and intended solely for delivery to and authorized use by the
addresses(s) identified above, and may contain privileged, confidential,
proprietary and/or trade secret information entitled to protection and/or
exempt from disclosure under applicable law. If you are not the intended
recipient, please take notice that any use, distribution or copying of 
this
communication, and/or any action taken or omitted to be taken in reliance
upon it, is unauthorized and may be unlawful. If you have received this
communication in error, please notify the sender and delete this
communication from your computer.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] All
information in this communication, including attachments, is strictly
confidential and intended solely for delivery to and authorized use by the
addresses(s) identified above, and may contain privileged, confidential,
proprietary and/or trade secret information entitled to protection and/or
exempt from disclosure under applicable law. If you are not the intended
recipient, please take notice that any use, distribution or copying of 
this
communication, and/or any action taken or omitted to be taken in reliance
upon it, is unauthorized and may be unlawful. If you have received this
communication in error, please notify the sender and delete this
communication from your computer.
All information in this communication, including attachments, is strictly
confidential and intended solely for delivery to and authorized use by the
addresses(s) identified above, and may contain privileged, confidential,
proprietary and/or trade secret information entitled to protection and/or
exempt from disclosure under applicable law. If you are not the intended
recipient, please take notice that any use, distribution or copying of 
this
communication, and/or any action taken or omitted to be taken in reliance
upon it, is unauthorized and may be unlawful. If you have received this
communication in error, please notify the sender and delete this
communication from your computer.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to