Filters

V

vijaya

Hai all!
I hav one doubt regarding filters.
How to restrict webpages for different users using response Filters in
java?

Thanks in advance.
Vijaya
 
K

Kai Schwebke

vijaya said:
Hai all!
I hav one doubt regarding filters.
How to restrict webpages for different users using response Filters in
java?

Write a dummy filter routing request/response unchanged -- every
tutorial on filters will explain how to do this.
Then alter this filter in a way redirecting to a "sorry, not authorized"
page for some users -- based on wathever means you like (session,
IP-addr., ...).


Kai
 
T

Tarkin

Hai all!
I hav one doubt regarding filters.
How to restrict webpages for different users using response Filters in
java?

Thanks in advance.
Vijaya

One filter for each collection of pages you want restricted.
Separate pages by directory, and map filters to directories.
Simple, and more than apparent from the API and
specification docs.

HTH,
Tarkin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top