wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark ""j_security_check" Problem????" Watch ""j_security_check" Problem????" New topic
Author

"j_security_check" Problem????

dheeraj chhabra
Greenhorn

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

Regards:
Dheeraj Chhabra
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
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 - updated with new look and Ping home screen widget
dheeraj chhabra
Greenhorn

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..
thanks
regards:
Dheeraj
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
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: http://aspose.com/file-tools
 
subject: "j_security_check" Problem????
 
Similar Threads
implement security constraints and assign users
how can I get the user name of the user authenticated by Tomcat in my servlet?
Implementing basic security mechanism
Error Location
action="j_security_check"