File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Form based login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Form based login" Watch "Form based login" New topic

Form based login

Murtuza Akhtari
Ranch Hand

Joined: Aug 07, 2004
Posts: 108
I am using form based authentication for my application. I have a page viewSummary.htnl in a folder called "secure". To access this page users have to logon. but whn i click on a link for the viewSummary page. It does not take me to the login sends me directly to the viewSummary.html

my login-config is as follows:

Also if i run my login page directly and put in username and password...i get a ServletNotFoundException : FormLoginServlet
the stack trace is as follows:

Please help me....been at it since the last 2 days

Thanks in advance

---<br />SCJP 1.4
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
That looks suspiciously like a CLASSPATH problem or a similar issue.

Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Murtuza Akhtari
Ranch Hand

Joined: Aug 07, 2004
Posts: 108
got rid of the ServletNotFoundException.....seems I had forgotten to enable global security in the WebSphere Server.

But I still have the first problem.I have and index.html page...where i have and anchor to the /secure/viewSummary.html
Whn I click that take me to the secured page even before login.

my security constraint is as follows:

Please help !!
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

I'm moving this to the IBM/Websphere forum, but I have to ask: which version are you using? I didn't try WAS 5, but in 4 (from memory) form based authentication only worked in 4.0.3 and 4.0.5 It was broken in other versions.
Murtuza Akhtari
Ranch Hand

Joined: Aug 07, 2004
Posts: 108
I am using WSAD 5.0/WAS 5.....Please tell me it works for 5.0 !!!
I agree. Here's the link:
subject: Form based login
jQuery in Action, 3rd edition