Results 1 to 2 of 2
  1. #1
    niteangell21 is offline Member
    Join Date
    Sep 2010
    Rep Power

    Default form based authentication

    Guys, I am implementing form based authentication system in my app. I have all the codes in place and tomcat server xml files configured correctly. But the problem is how do I forward the page to home page on successful authentication. This is the code I am talking about.

    Java Code:
    <form method="post" action="j_security_check" >Please enter username and
    password:<br />
    Username <input type="text" name="j_username" /><br />
    Password <input type="password" name="j_password" /><br />
    <input type="submit" value="Submit" /></form>
    This is my web xml config:

    Java Code:
    The tomcat server successfully authenticates my login, but I am not moving forward to my home page.Still stays on login page after clicking submit. Is there anyway to add something like
    Java Code:
    <form-forward-page>/home.jsp</form-forward-page> (for successful login)
    Thanks for any help!!!

  2. #2
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Destiny Islands
    Rep Power


    *Blinks a few times.*

    I don't see anything in there related to Java. Are you sure you're not looking for a JavaScript forum?

Similar Threads

  1. Replies: 0
    Last Post: 01-28-2010, 02:46 AM
  2. Form Based Authentication fails with unicode characters
    By davesquire in forum Java Servlet
    Replies: 1
    Last Post: 09-25-2009, 06:00 PM
  3. Form based authentication
    By Mrs. Deswal in forum Networking
    Replies: 1
    Last Post: 07-01-2009, 08:05 AM
  4. Form Based Authentication
    By archmisha in forum Java Servlet
    Replies: 1
    Last Post: 02-06-2009, 10:27 AM
  5. Replies: 0
    Last Post: 04-04-2008, 09:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts