⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loginpage.jsp

📁 Oracle的J2EE Sample
💻 JSP
字号:
<%--
 * @author  Umesh
 * @version 1.0
 *
 * Development Environment       : Oracle9i JDeveloper
 * 
 * Name of the File              : LoginPage.jsp
 *
 * Creation/Modification History :
 *    Umesh     26-Apr-2002      Created
 *
 * Overview of Application       :
 *     
 *        This JSP displays the Login Page for the user. The User can enter Account Number 
 * and Password and login to the system for trading. There is a link provided from this page 
 * to the SignUp JSP. There is also a link provided to request for the Account Number and 
 * Password which will be emailed to the provided email address.
 *
--%>

<%@page contentType="text/html;charset=WINDOWS-1252" language="java" %>

<html>
<head>
<title>OTN Financial Brokerage System : Login Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1252">
<link rel="stylesheet" href="includes/contents.css" type="text/css">

<script language="JavaScript">

function validateForm() {
  formObj = document.LOGINFORM;
  if (isNaN((formObj.AccountNumber.value))) {
    alert("Account Number Must be a valid Integer");
    return;
  } else if((formObj.AccountNumber.value) <= 0) {
    alert("Account Number Must be > 0");
    return;
  } else if (formObj.Password.value == "") {
    alert("Please Enter Non Empty Value of Password");
    return;
  } else
      formObj.submit();
}

function forgot() {
  var settings = "screenX=260,screenY=260,width=440,height=200,resizable=no,menubar=no,toolbar=no,"+
                 "directories=no,location=no,scrollbars=no,status=no";
  window.open("controllerservlet?EVENTNAME=FORGOTPWD","forgotpassword",settings);
}

</script>

</head>

<body bgcolor="#FFFFEA">

<jsp:include page="TitleGifs.jsp" flush="TRUE"/>
<jsp:include page="ShowError.jsp" flush="true"/>

<table width="100%" border="1" cellpadding="0" cellspacing="0" bgcolor="#FFFFEA" bordercolor="#008000" height="80%">
  <tr><td valign="top"><table width="100%" cellpadding="0" cellspacing="0">
  <tr>
    <td bordercolor="#FFFFEA" align="center" valign="bottom" bgcolor="#FFFFEA"> 
      <br>
      <b><font face="Verdana, Times New Roman, Times, serif" color="#008000"> 
      If you are a New User, Please 
      <a href="controllerservlet?EVENTNAME=SIGNUP"><span class="linkText">Sign Up</span></a> and Login 
      </font></b> </td>
  </tr>
  <tr>
    <td bordercolor="#FFFFEA" bgcolor="#FFFFEA">&nbsp;</td>
  </tr>

  <tr>
    <td valign="top" align="center" bordercolor="#FFFFEA" >
      <table width="40%" border="1" bordercolor="#008000" cellpadding="0" cellspacing="0">
        <tr>
          <td>
            <table width="100%" cellpadding="2" cellspacing="2">
              <tr> 
                <th bordercolor="#FFFFEA" bgcolor="#008000" class="mainText">Registered Users<br>Enter Login Information</th>
              </tr>
            </table>
            <table width="100%" cellpadding="2" cellspacing="2">
              <form name="LOGINFORM" method="POST" action="controllerservlet">
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <th class="leftHead" align="right">Account Number&nbsp;&nbsp;</th>
                  <td> 
                    <input type="text" name="AccountNumber" size="12">
                    <input type="hidden" name="EVENTNAME" value="LOGIN">
                    <input type="hidden" name="CALLOUT_EVENT" value=<%= request.getParameter("EVENTNAME") %>>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <th class="leftHead" align="right">Password&nbsp;&nbsp;</th>
                  <td> 
                    <input type="password" name="Password" size="12">
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div align="right"><img src="images/submit.gif" alt="Submit" onMouseUp="validateForm();"></div>
                  </td>
                  <td><img src="images/cancel.gif" alt="Cancel" onMouseUp="history.go(-1);"></td>
                </tr>
              </form>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr> 
  <tr>
    <td class="leftHead" align="center" bordercolor="#FFFFEA" bgcolor="#FFFFEA"> 
      <br><br><br><br><br>
      <b>Oops! Forgot your Account Number / Password? 
      <a href="javascript:forgot()"><span class="linkText">Click Here</span></a> 
    </td>
  </tr>
  </table></td></tr>
</table>

<jsp:include page="Footer.jsp" />

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -