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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41060
In a URL, the parameters start with a "?", so instead of "&j_username=" it should be "?j_username=".

Ping & DNS - my free Android networking tools app
I agree. Here's the link:
subject: simple login page (HELP!)
Similar Threads
Configuration of filter problem
Logout in JSF with Security managed by Glassfish v3.1
JAAS and Tomcat container managed authentication
Bypass login form on a Spring application
java.lang.IllegalStateException: Cannot create a session after the response has been committed