You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anthony Smith <an...@fedex.com> on 2005/07/27 18:21:05 UTC

URLConnection and form based authentication (j_username)

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>

 

 

 

 

Anthony Smith
Programmer Analyst
International Technologies
901-263-8953

 

"Having education and talent doesn't make you better than the world...
it makes you responsible for it!"