日期:2014-05-17  浏览次数:20802 次

一个页面 有两个form 嵌套 为什么里面那个form 提交的是外面的action
怎么让里面的form 提交对应的action


<%@page contentType="text/html;charset=UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>用户注册</title>
</head>

<body>

<center>
<form onsubmit="return validateAddAdminForm(this);" method="post"
action="addTeacher.action" >
<table width="776" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td align="left" style="border-bottom: 1px solid #E5E5E5">
<br>
</td>
</tr>
<tr>
<td height="25" align="left">
添加班主任信息
</td>
</tr>
</table>


<!--书签插入位置-->
<table width="776" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="card1" width="776" align="center" bgcolor="#3D84CD"
style="cursor: hand; color: #ffffff; font-size: 14px; font-weight: bold">
基本信息
</td>
</tr>
</table>
<table width="776" border="0" cellspacing="0" cellpadding="0"
style="border: 1px solid #E5E5E5" >
<tr>
<td align="center">

<table width="764" border="0" cellspacing="0" cellpadding="0">
<tr>

<td colspan="4" align="left">
<font style="color: #FAAD45">*</font> 为必填信息:
</td>
</tr>
</table>
<table width="764" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="25" align="center"
style="color: #FAAD45">
*
</td>
<td width="100" height="25" align="center">
班主任名字:
</td>

<td width="177" height="25" align="left">
<span class="table_k_bg1"> <input type="text"
class="input" id="teacherName" name="teacherName" maxlength="20"
size="20" /> </span>
</td>

<td align="left" width="467">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<font color="blue"><div id="result"></div>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>

[align=left][/align]
<table width="764" border="0" align="center" cellpadding="0"
cellspacing="0">

<tr>
<td width="20" align="center" style="color: #FAAD45"></td>
<td width="100" height="35" align="center">