Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Redirect to a default page when tomcat is running a certain servlet

Reply
Thread Tools

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

 
 
vanisathish@gmail.com
Guest
Posts: n/a
 
      12-18-2006
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

 
Reply With Quote
 
 
 
 
Manish Pandit
Guest
Posts: n/a
 
      12-18-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat ssl servlet to servlet, private CA edavid3001@gmail.com Java 0 10-06-2005 09:03 PM
seeking servlet "Master" keep getting "Master/servlet/Master" not found. Tomcat 5.0.25 Doug McCann Java 1 08-05-2004 09:16 PM
Servlet question(Tomcat, web.xml, servlet-class, servlet-name) circuit_breaker Java 2 04-04-2004 03:26 AM
Tomcat: POST from one servlet or internal class to another servlet Sean Clarke Java 1 01-07-2004 02:22 PM
Servlet front page without redirect - Tomcat 4.1 with mod_rewrite and mod_jk2 Alex Martinoff Java 2 09-07-2003 06:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57