tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Cartier" <rcart...@snet.net>
Subject help: logging j_username
Date Thu, 12 Dec 2002 23:57:12 GMT
Is there a way besides using session cookies to log
invalid logon attempts from a form based logon jsp

I was using cookies before but I would like to find another
way from within this jsp

========================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Studio">
</HEAD>
<body>
<%@ page session="true" %>
<%@ page contentType="text/html"%>
<table border="0" cell="" padding="0" size="480" width="640">
<body onload="document.login.j_username.focus()"></body>


<%
 System.out.println("JSP======> " + request.getRemoteUser() + "|"
+ request.getRequestURI()  + "|" + request.getRemoteAddr() + "|"
+ new java.util.Date().toString() + "|" + request.getHeader("User-Agent") );
%>

<%
String url = "j_security_check";
%>

<h2>Login page </h2>
<form  action='<%= response.encodeURL(url) %>' name="login"  >
<table border="0" cell padding="0" width=480>
 <tr>
    <td  nowrap><font face="Fixedsys">Username:</font></td>
    <td ><input type="text" name="j_username"></td>
</tr>
 <tr>
    <td nowrap><font face="Fixedsys">Password:</font></td>
    <td ><input type="password" name="j_password"></td>
 <tr>
 <tr>
 	<td > </td>
	<td><input type="submit" value="Login"></td>
 </tr>
<br>

</table>

</form>

</body>
</html>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message