This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark ""j_security_check" Problem????" Watch ""j_security_check" Problem????" New topic

"j_security_check" Problem????

dheeraj chhabra

Joined: Apr 09, 2004
Posts: 23
Hello everybody,

I am making my security application using Tomact server using tomacat API.
I changed Tomcat API accordingly, so that my application uses "security-users.xml" instead of "tomcat-users.xml"......

All are going well such as, creating users,roles etc. And then writing anmd reading from "security-users.xml"..........
But i am having problem with "j_security_check"......

With the loging page of my application..can i use "j_security_check"....
what shud i do for that..........
Could anyone please help me out

Thanks in advance

Dheeraj Chhabra
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41134
The Tomcat documentation mentions that an example of from-based authentication ships with it. Point your browser at this JSP example, and study the code it uses. The names of the pages are configured in web.xml, and the names of the parameters need to be the same ones as in that example.

Ping & DNS - my free Android networking tools app
dheeraj chhabra

Joined: Apr 09, 2004
Posts: 23
Thanks Ulf Ditter,

But i didn't get any clue from jsp-examples under tomcat.....
I just wanna use "j_security_check" to use my "security-users.xml" file for authentication........

And how could it bedone??

Any suggestion in this regard will be helpful to me..
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41134
The login.jsp page in that example uses j_security_check. What is it that you don't understand about the example?
You haven't told us precisely what problem you have, only that something doesn't work the way you expect it to work. But what exactly you have tried, and what the result was, we don't know, so it's hard to advise you on what to do.
[ August 29, 2005: Message edited by: Ulf Dittmer ]
I agree. Here's the link:
subject: "j_security_check" Problem????
Similar Threads
Error Location
how can I get the user name of the user authenticated by Tomcat in my servlet?
implement security constraints and assign users
Implementing basic security mechanism