我在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>
模式对话框是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>
解决方案 »
- hibernate 访问数据库 出错
- 心情很好,散分!10分钟内结贴 !【六】
- EJB QL的查询问题
- SmartFoxServer连接mysql编码问题
- 写文件,文件内容却为空
- Webwork+Spring+hibernate 框架,在公司的机器上做好的程序,回来后就不好用了!为什么啊!急!
- 急,判断一个字符串包含指定字符的函数?字符串包含函数
- saveOrUpdate(vo),delete后insert为什么不按顺序新增?
- Hibernate中如何处理这个查询
- jbuilder7编译器小问题,不知道大家遇到过吗??近来看看?
- JAVA进阶:前辈们给点学习意见!!
- 请教:一个hibernate的关联关系的问题
为什么不2个放在一个页面,不知道你说的模式是什么,登陆模式?虽然弹子窗出来登陆然后母窗刷新js处理没任何问题,但最大的麻烦是session,子窗和母窗的session分别是2个,用户状态难以传递,