• Post Reply Bookmark Topic Watch Topic
  • New Topic

Login Filter is not invoked  RSS feed

Thorsten Mueller
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to implement a filter that redirects the user after she authenticated herself. The resultpage depends on the users security role (here: subject or supervisor).
When I start my application, you are prompted to identify yourself by an authentication dialog (I'm using BASIC authentication). Afterwards the welcome-page "index.xhtml" is rendered, which is located directly under the root directory.

The filter should apply for "index.xhtml", however the filter is never invoked. In my web.xml there are no further filter-settings. I also tried to remove the annotations and place the filter-rule and mapping in the web.xml but i did not help.

When I replace the urlPattern with "/*" it is invoked but throws an exception because after the forward it seems to be invoked endlessly (?)). However, I only want to apply the filter to index.xhtml (also tried index.jsf and /faces/index.xhtml without success).

do you see the error?

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!