A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Sockets and Internet Protocols
Author
URLConnection and form based authentication
Anthony Smith
Ranch Hand
Joined: Sep 10, 2001
Posts: 285
posted
Jul 27, 2005 10:11:00
0
I cannot get this to work. It works for all other sites besides ones that have j_username & j_password. It always comes back to the login page. I see other messageboards via google that have the same problem, but there is no answer.
<form method="POST" action='/cpvs/login' >
<input type="hidden" name="auth" value="securid" />
<table border="0" cellspacing="5">
<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="Log In" name="login" ></td>
<td align="left"><input type="reset"></td>
</tr>
</table>
</form>
</div>
</center>
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: URLConnection and form based authentication
Similar Threads
JAAS
redirect from external page to tomcat 4 with forms based authentication
JDBCUserRealm question
j_security_check - How Does It Verify Information
Login Window in Html page Apache style
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter