File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j_security_check without redirecting

 
Kalle Anka
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case I wouldn't use the built-in form-based security, but instead create your own login mechanism.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic