structs中从jsp页面为啥不能跳转到action中(请哪位大侠教教小弟,急!!)
jsp页面:
<%@ page language="java" contentType="text/html; charset=GB2312"%>
<%@ include file="../common/taglibs.jsp" %>
<html:html>
<head>
<title>新建用户</title>
</head>
<body>
<html:form action="newuser.do">
<table width="60%" border="1" align="center">
<tr>
<td width="30%" align="left">用户名:</td>
<td width="70%"><input name="username" type="text" ></td>
</tr>
<tr>
<td align="left">密码:</td>
<td><input name="password" type="password" ></td>
</tr>
<tr>
<td align="left">确认密码:</td>
<td><input name="password2" type="password"></td>
</tr>
<tr>
<td align="left">性别:</td>
<td>
<input name="sex" type="radio" value="1">男
<input name="sex" type="radio" value="0" checked>女
</td>
</tr>
<tr>
<td align="left">Email:</td>
<td><input name="email" type="text"></td>
</tr>
<tr>
<td align="left">通信地址:</td>
<td><input name="address" type="text"></td>
</tr>
<tr>
<td align="left">用户等级:</td>
<td>
<input name="grade" type="radio" value="1">管理员
<input name="grade" type="radio" value="0" checked>普通用户
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="Submit" value="提交">
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
配置文件:
<?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>
<form-beans>
<form-bean name="userInfoForm" type="nm.admin.form.UserInfoForm" />
</form-beans>
<global-exceptions />
<global-forwards>
<forward name="ToUserList" path="/NoticeManager/admin/userlist.jsp" />
</global-forwards>
<action-mappings >
<action path="/newuser" type="nm.admin.action.NewUserAction" name="userInfoForm" scope="request" input="/NoticeManager/common/messagepage.jsp" />
</action-mappings>
<message-resources parameter="nm.ApplicationResources_zh" />
</struts-config>
在跳转到NewUserAction中我输入 System.out.println("aaaaaaaaaaa");打不出来
地址栏:http://localhost:8082/ch12_SSH/newuser.do
页面不显示任何内容。这到底是为什么呢??请哪位大侠教教小弟,实在想不出来。谢谢