request.getParameter("j_username") gets null?
Hello,
I am using j_security_check feature to make login page.
my Login page is :
<html>
<head>
<title>Login Page</title>
</head>
<body bgcolor="white">
<h2> <center> Custom Login Page </center></h2>
<hr width='90%' align='center'>
<form method="POST" action="j_security_check">
<table border="0" cellspacing="5" align='center'>
<tr>
<th align="right">Username:</th>
<td align="left"><input type="text" name="j_username"></td>
</tr>
<tr>
<th align="right">Password:</th>
<td align="left"><input type="password" name="j_password"></td>
</tr>
<tr>
<td align="right"><input type="submit" value="Login"></td>
<td align="left"><input type="reset"></td>
</tr>
</table>
</form>
</body>
</html>
myprotected page is: myhome.jsp
<%@ page language="java" %>
<!DOCTYPE HTML PUBLIC"-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>Marco-Molecular Docking Program </title>
</head>
<body bgcolor="#FFFFFF">
<%!int colspan = 2; %>
Welcome : <% request.getParameter("j_password"); %>
</BODY>
</HTML>
I have configured and can log in login.jsp page, but the myhome.jsp display the password is null. Does anybody can help me ?
Thanks a lot.

