Redirect to a default page when tomcat is running a certain servlet

V

vanisathish

Hi,

I need to restrict the access to my website, when i'm doing some
operation/(running some servlet) locally on my PC. Is there a way i can
set an application scope variable and retrict the access to the website
when that particular flag is true.

Appreciate your inputs
 
M

Manish Pandit

Not sure what you are trying to achieve by doing this, but in real
world web applications, this is normally achieved by having the server
point to a context/another server that presents downtime information
and alternatives/ETC while the app is down. I am no network expert, but
you might want to look into this option instead of coding your
application around a down/up variable.

-cheers,
Manish
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top