struts错误:Cannot retrieve ActionForward named /logout
来源:百度知道 编辑:UC知道 时间:2024/05/23 16:11:42
相关代码:
网页部分:
<bean:write name="username" />,您好
<html:link href="user/changeinfo.jsp">修改个人信息</html:link>
<html:link forward="/logout">注销</html:link>
struts-config.xml部分:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans >
<form-bean name="logonForm" type="com.ss.struts.form.LogonForm" />
</form-beans>
<global-exceptions />
<global-forwards >
<forward name="logout" path="/logout.
网页部分:
<bean:write name="username" />,您好
<html:link href="user/changeinfo.jsp">修改个人信息</html:link>
<html:link forward="/logout">注销</html:link>
struts-config.xml部分:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans >
<form-bean name="logonForm" type="com.ss.struts.form.LogonForm" />
</form-beans>
<global-exceptions />
<global-forwards >
<forward name="logout" path="/logout.
<html:link forward="/logout">注销</html:link>
改成:
<html:link forward="logout">注销</html:link>
<html:link forward="/logout">注销</html:link>
是否应该是logout.do呢?
毕竟你也是在发出一个请求,就好比你直接在浏览器上输入
http://localhost:8080/xxx/logout.do
一个道理。试试看
我建议试试struts2
cannot resolve symbol :错误!!
netbeans 下struts 错误
The import org.apache.struts cannot be resolved
错误 cannot render video capture stream
struts怎么连接SQL 2000 出现错误
struts中验证出的错误
struts的错误打家帮我看看
在struts应用程序中有时候报“Cannot forward after response has been committed”
急求救ASP错误:Cannot initializes the scripting engine!!!
系统备分出现错误Cannot oreat image file