关于action跳转不过去卡住了的问题

J2EE 码拜 8年前 (2016-05-05) 1306次浏览
web.xml
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app version=”2.5″
xmlns=”http://java.sun.com/xml/ns/javaee”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd”>
<servlet>
<servlet-name>struts</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>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>struts</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list><?xml version=”1.0″ encoding=”utf-8″?>
struts-config.xml
<!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=”employeeForm” type=”com.hsp.web.forms.EmployeeForm” />
</form-beans>
<action-mappings>
<action path=”/login” parameter=”flag” name=”employeeForm”>
<forward name=”ok” path=”/WEB-INF/MainFrame.jsp”/>
<forward name=”err” path=”/WEB-INF/login.jsp”/>
</action>
</action-mappings>
</struts-config>
</web-app>
关于action跳转不过去卡住了的问题关于action跳转不过去卡住了的问题
卡在第二张图不动了
数据库文件
# Host: localhost  (Version 5.7.12-log)
# Date: 2016-07-21 17:19:41
# Generator: MySQL-Front 5.3  (Build 6.25)
/*!40101 SET NAMES utf8 */;
#
# Structure for table “username”
#
DROP TABLE IF EXISTS `username`;
CREATE TABLE `username` (
`Id` int(2) NOT NULL AUTO_INCREMENT,
`username` varchar(20) DEFAULT NULL,
`password` varchar(20) DEFAULT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
#
# Data for table “username”
#
解决方案

10

引用:

不知道啥原因,有人能指导一下吗

引用:

不知道啥原因,有人能指导一下吗

换个浏览器试试 别用自带的

30

debug一下,看进到action了么?

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明关于action跳转不过去卡住了的问题
喜欢 (0)
[1034331897@qq.com]
分享 (0)