日期:2014-05-18  浏览次数:20758 次

如何在jsp里制作弹出窗口??!!(急!~)
[b]我有一个jsp的页面(代码如下),老大让我在[color=#0000FF]点击“登录”时弹出个窗口,要输入相同的人员编号及密码后,界面才可以到下一页,哪位大侠帮下忙!!教教我怎么做!![/b][/color]

<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template"
prefix="template"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"
prefix="nested"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%String webpath = request.getContextPath();
%>
<link rel="stylesheet" type="text/css" media="screen" href="css/qydl.css" />
<HTML>
<HEAD>
<TITLE>用户登录</TITLE>
<style type="text/css">
<!--
.STYLE1 {
font-family: "黑体";
font-size: 36px;
font-weight: bold;
color: #6F067B;
}
.STYLE2 {
font-size: 14px;
font-weight: bold;
color: #6F067B;
}
-->
</style>
<script language="javascript">
  function checkform(){ 
if(document.all.userid.value==''){
alert("人员号不能为空!");
return false;

if(document.all.userpwd.value==''){
alert("登录密码不能为空!");
return false;
}  
  }  
</script> 
</HEAD>
<body vLink="#000000" aLink="#6f067b" link="#000000" leftMargin="0" topMargin="0">

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
  <td align="left" valign="top">
<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
  <tr>
  <td background="img/bg1.gif">&nbsp;</td>
  </tr>
</table>
<table width="100%" height="21" border="0" cellpadding="0" cellspacing="0">
  <tr>
  <td align="right" valign="bottom" background="img/bg1_1.gif">&nbsp;</td>
  </tr>
</table>
<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0" style="border-bottom:#000000 solid 1px;">
  <tr>
  <td width="30%" bgcolor="#FFFFFF"><img src="img/logo.gif" width="214" height="65" /></td>
  <td width="70%" align="right" bgcolor="#FFFFFF"><img src="img/yg.jpg" width="409" height="55" style="margin-right:5px;" /></td>
  </tr>
</table>
<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
  <tr>
  <td bgcolor="#C8B430">&nbsp;</td>
  </tr>
</table>
<table widt