---
title: "HTTP Status 404 There is no Action mapped for namespace / and action name "
author: "xycdgc"
date: "2010-04-17T22:56:03Z"
tags: []
categories: ["企业架构"]
slug: "http-status-404-there-is-no-action-mapped-for-namespace-and-action-name"
draft: false
lastmod: "2010-04-27T15:49:06Z"
id: 646484
url: "https://xycdgc.iteye.com/blog/646484"
---

在首次进行struts的开发中，初学者经常会遇到HTTP Status 404 There is no Action mapped for namespace / and action name 的问题，出现上述的问题，大概从以下几个方面进行检查：
    （1）首先，检查struts.xml的位置，一般在eclipse或者myeclipse下放在src目录下，在运行后，我们可以看到，我们在src中所写的类，struts.xml，在web-inf下的classes下都能找到。其中类都已经编译通过变成了.class文件。
    （2）其次注意路径的问题，仔细检查是不是在相对路径方面除了问题。
    （3）检查拼写，这个问题一定要避免放生，一些小的错误比如说把struts.xml写成了sturts.xml或者写成了struts2.xml，单词的拼写错误，这些都会导致上述错误。