| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <%
- response.addHeader("Cache-Control", "no-store,no-cache,must-revalidate");
- response.addHeader("Cache-Control", "post-check=0,pre-check=0");
- response.addHeader("Cache-Control", "proxy-revalidate");
- response.addHeader("Pragma", "no-cache");
- response.addHeader("Expires", "0");
- System.out.println("request.getUserPrincipal() :"+request.getUserPrincipal());
- String callerPrincipal = (String) request.getSession().getAttribute("login.user");
- if(callerPrincipal!= null) {
- //response.sendRedirect("home.jsp");
- }
-
- if(request.getUserPrincipal()!=null){
- response.sendRedirect("login.do");
- }
- %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1">
- <title>
- Bank BTN - Paling Berpengalaman & Terpercaya
- </title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="Cache-Control" content="no-store,no-cache,must-revalidate"/>
- <meta http-equiv="Pragma" content="no-cache"/>
- <meta http-equiv="Expires" content="-1"/>
- <meta http-equiv="content-style-type" content="text/css" />
- <meta http-equiv="content-script-type" content="text/javascript" />
- <link type="text/css" rel="stylesheet" href="css/stylesheet.css" />
- <link rel="shortcut icon" href="images/favicon.ico">
- <link rel="icon" href="images/favicon.ico">
- <style type="text/css">
- .debugTable td, .debugTable th { border: solid 1px #cccccc; }
- .style2 {
- color: #999999;
- font-weight: bold;
- }
- </style>
- </head>
- <logic:notEmpty name="error.general"><table><tr><td><font color="red"><bean:write name="error.general"/></font></td></tr></table></logic:notEmpty>
- <script type="text/javascript" language="javascript">
- <!--
-
- function checkEnter(e){ //e is event object passed from function invocation
- var characterCode;// literal character code will be stored in this variable
-
- if(e && e.which){ //if which property of event object is supported (NN4)
- e = e;
- characterCode = e.which; //character code is contained in NN4's which property
- }
- else{
- e = event;
- characterCode = e.keyCode; //character code is contained in IE's keyCode property
- }
-
- if(characterCode == 13){ //if generated character code is equal to ascii 13 (if enter key)
- document.forms[0].submit(); //submit the form
- return false;
- }
- else{
- return true;
- }
- }
-
-
- function doAuthentication(){
- document.forms.login.submit();
- }
- -->
- </script>
- <body>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="1%"><img src="images/headerUV_01.jpg" width="20" height="100" align="left" alt="" /></td>
- <td width="10%"><img src="images/headerUV_02.jpg" width="177" height="100" align="left" alt="" /></td>
- <td width="12%"><img src="images/headerUV_03.jpg" width="200" height="100" align="left" alt="" /></td>
- <td width="80%" style="background-image:url('images/headerUV_bg_01.jpg');" ><img src="images/headerUV_04.jpg" width="423" height="100" align="left" alt="" /></td>
- <td width="1%"><img src="images/headerUV_05.jpg" width="20" height="100" align="right" alt="" /></td>
- </tr>
- <tr>
- <td colspan="2" width="10%"style="background-image:url('images/headerUV_07.jpg');" height="31" align="center" /></td>
- <td width="12%"><img src="images/headerUV_08.jpg" width="200" height="31" align="left" alt="" /></td>
- <td nowrap="nowrap" width="80%" style="background-image:url('images/headerUV_bg_02.jpg');" align="right"/></td>
- <td width="1%"><img src="images/headerUV_10.jpg" width="20" height="31" align="right" alt="" /></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td width="100%" valign="top" align="center" height="400" bgcolor="#DEDEDE">
- <p> </p>
- <p> </p>
- <p> </p>
- <form name="login" method="post" action="j_security_check" >
- <input type="hidden" name="action" value="" />
- <table width="300" border="0" cellspacing="3" cellpadding="5" bgcolor="#DEDEDE">
- <tr>
- <td colspan="3" align="center"><strong>LOGIN PAGE</strong></td>
- </tr>
- <tr>
- <td width="115">User Name</td>
- <td width="4">:</td>
- <td width="155"><label>
- <input type="text" name="j_username" size="30" onKeyPress="checkEnter(event)"/>
- </label></td>
- </tr>
- <tr>
- <td>Password</td>
- <td>:</td>
- <td>
- <input type="password" name="j_password" size="30" onKeyPress="checkEnter(event)"/>
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td>
- <label>
- <input type="button" name="Submit" onclick="javascript:doAuthentication();" value="LOGIN" />
- </label>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- <logic:notEmpty name="userError">
- <font color="#FF0000"><bean:write name="userError"/></font>
- </logic:notEmpty>
- </td>
- </tr>
- </table>
- <script type="text/javascript">document.forms.login.j_username.focus();</script>
- </form>
- </td>
- </tr>
- <tr>
- <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="1%"><img src="images/footerUV_01.jpg" width="20" height="59" alt="" /></td>
- <td width="98%" style="background-image:url('images/footer_bg.jpg');">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <TR>
- <TD width="50%" align="left"><img src="images/footerUV_03_01.jpg" width="377" height="59" alt=""/></TD>
- <TD width="50%" align="right">
- <FONT color="#FFFFFF"><b>v.1.0.510</b></FONT>
- </TD>
- </TR>
- </table>
- <td width="1%"><img src="images/footerUV_03.jpg" width="18" height="59" alt="" /></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </body>
- </html>
|