我现在用的是eclipse+tomcat+ssh做的一个web程序,下面是我遇到的问题.现在我只在做struts的视图部份,其它sh包我已经导入了,我开始做的一个登录程序,第一次可以进入,但是只要我一改struts-config.xml文件,还是运行的原来的,没有更新啊!!比如我加了一个formbean和action,在我的jsp文件提交时就会说找不到那个action,但是里面有啊,我就把里面的加的删除了,再运行我原先的程序就出现了这个!!!谁能帮我解决一下呀,谢谢了!!我在网上查了下,我的project里的build auto..也是选上了的啊,重新启动tomcat和eclipse还是一样的,不过有时又可以成功type Status reportmessage Servlet action is not availabledescription The requested resource (Servlet action is not available) is not available.
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>denlu.jsp</welcome-file>
</welcome-file-list>
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/tlds/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>//struts-config.xml
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd"><struts-config>
<form-beans>
<form-bean name="Loginform" type="form.denluform"/>
<form-bean name="shangyi" type="form.syform"/>
<form-bean name="zucheform" type="form.zucheform"/>
</form-beans>
<action-mappings>
<action path="/LoginAction"
type="action.LoginAction"
name="Loginform"
scope="request" validate="true"
input="/shouye.jsp">
<forward name="failure" path="/denlu.jsp"/>
<forward name="success" path="/shouye.jsp"></forward>
</action>
</action-mappings>
</struts-config>//denlu.jsp
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>管理员登录页面</title>
</head>
<body>
<html:form action="/LoginAction.do" method="post">
<table border="0">
<tr>
<td>用户名</td>
<td><html:text property="username"/></td>
</tr>
<tr>
<td>密码</td>
<td><html:password property="uspassword"></html:password>
</td>
</tr>
<tr colspane="2" align="center" >
<td><html:submit value="登录"></html:submit>
</td>
<td><a href="zuche.jsp">注册</a></td>
</tr>
</table>
</html:form>
</body>
</html>