我在index.jsp页面有个连接"登陆"点击后打开一个模式对话框showModelDialog();
模式对话框是login.jsp页面,填写账号密码后点登陆然后提交到action里做登陆处理,登陆完成后跳转到index.jsp页面
我想这么做:点击登陆:模式对话框关闭,然后刷新index.jsp..
-------------------------
index.jsp页面<script language="text/javascript">
function toLogin()
{
     window.showModalDialog('login.jsp',tourl,"dialogWidth:200px;dialogHeight:150px;center:yes;status:no;scroll:no;help:no;");
}
</script>
<a href="#" onclick="toLogin()">登录</a>login.jsp页面<HTML>
<HEAD>
<title>用户登录</title>
<link href="table.css" rel="stylesheet" />
</HEAD>
<BODY>
<br />
<br />
<form action="user.do?action=doLogin" method="post" id="log">
<table cellpadding="0" cellspacing="0" width="80%" align="center">
<tr>
<td>
用户:
</td>
<td>
<input type="text" name="item.name" class="text">
</td>
</tr>
<tr>
<td>
密码
</td>
<td>
<input type="password" name="item.password" class="text">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="登录" class="BUTTON_STYLE1">
</td>
</tr>
</table>
</form>
</BODY>
</HTML>