This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Security and the fly likes j_security_check without redirecting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "j_security_check without redirecting" Watch "j_security_check without redirecting" New topic
Author

j_security_check without redirecting

Kalle Anka
Ranch Hand

Joined: Jul 06, 2005
Posts: 69
Hi y'all,

I'm not very advance in J2EE programming, and now I'm facing a problem with using form based authentication. In normal case, the user would request a protected resource and then be redirected to a certain loginpage.

But I want to be able to login from any page without the user first trying to access any protected resourse. I have tried to simply adding the necessary html-tags to my main page. But when I try to log in there (without first trying to access a protected resource), JBoss just prints out an error message. Is there a way to login users without them trying to access protected resources?

thank you in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
In that case I wouldn't use the built-in form-based security, but instead create your own login mechanism.


Ping & DNS - my free Android networking tools app
 
Don't get me started about those stupid light bulbs.
 
subject: j_security_check without redirecting