Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > form based login

Thread Tools

form based login

Posts: n/a

i have a login page that is controlled by the web.xml:


and works fine. authentication is done thru LDAP.

inside my application, i put data in the session (pagination keys,
when my session timed-out, and the user clicked on the link (whose
action involves accessing the data in the session), the login page is
displayed. this is the normal behavior. however, being the session
already invalid, all data in the session are lost. so as soon as the
user entered the login data, i get exceptions (nullpointer, etc).
because the data that i need to access from the session is no longer

one way to avoid this problem is to always go to a page everytime a
user logs in, regardless if the user logged in for the first time, or
when the session timed-out and the user has re-logged.

is there a way to do this but still using the <login-config> from
web.xml? authentication has to go thru LDAP and i wanted to avoid
coding for such.

i am using weblogic 8.1.x and struts.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
form based login in jboss using login-config not working manu Java 1 07-20-2008 10:49 PM
Login using NT login details from web form problems DavidADEW ASP .Net 2 09-01-2006 03:10 PM
How to show the user name with form based authentication after anunsuccessful login? Andrea Desole Java 4 01-20-2006 09:15 AM
Can we pass parameters to login.jsp in Tomcat Form-Based authentication Bharath Java 3 05-10-2005 05:48 PM
About Form-based login... Otto MCAD 3 01-03-2004 09:41 AM