File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes simple login page (HELP!) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "simple login page (HELP!)" Watch "simple login page (HELP!)" New topic

simple login page (HELP!)

DeAlton Jones

Joined: Apr 04, 2006
Posts: 22
Hi everyone!,

I am working on a simple login faces page that if the j_username and the j_password are correct navigate to a success page if not navigate to a failed page. I am using an LDAP to validate.

This code is pretty generic and a lot of people have had success with it. any and all help would be appreciated.

DeAlton Jones

Joined: Apr 04, 2006
Posts: 22
more information

I get a the following for my sysouts
I am getting my session id
What is the return code 302, shouldn't it be 200
authenticated username is null. why?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
In a URL, the parameters start with a "?", so instead of "&j_username=" it should be "?j_username=".
I agree. Here's the link:
subject: simple login page (HELP!)
It's not a secret anymore!