This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes HTTP Status 404 - Servlet cz is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTTP Status 404 - Servlet cz is not available" Watch "HTTP Status 404 - Servlet cz is not available" New topic

HTTP Status 404 - Servlet cz is not available

c rain

Joined: Jul 04, 2004
Posts: 1
Hi, All,

I'm trying to build a simple struts web application. I have a and, login.jsp together with some other JSP's. When I'm in login.jsp, and click on the SUBMIT, i got HTTP Status 404 - Servlet cz is not available erroring out. The following is my web.xml and struts-default file.

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"


<!-- Action Servlet Configuration -->


<!-- Action Servlet Mapping -->

<!-- Struts Tag Library Descriptors -->





<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config (View Source for full doctype...)>
<form-bean name="loginForm" type="login.LoginForm" />

<forward name="error" path="/error.jsp" />

<action path="/login"
<forward name="success" path="/login.jsp" />

<controller processorClass="org.apache.struts.action.RequestProcessor" />
<message-resources parameter="resources.ApplicationResources" null="false" />

Thank you guys. Any help is appreciated.

poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
change your actionServlet mapping as


I dont know is there any problem if you change the servlet name from action to something else . That i have to find out
Anyway try like this
All the best
I agree. Here's the link:
subject: HTTP Status 404 - Servlet cz is not available