> From: Nicklas Karlsson [mailto:[EMAIL PROTECTED] 
>       I need to implement per-application (WAR) shutdown messages for
> the currently logged on users on a web application e.g. when the
> application is being re-deployed or the server is going down for 
> maintenance.
>       Is it possible to extend ActionServlet so that processing would
> also include a check for an attribute in the servletcontext 
> (e.g. time to shutdown in minutes) and if such an attribute exists, 
> redirect the user to shutdown.jsp? 

Sounds like (yet another) job for a Filter!  I have a similar thing, a
MaintenanceFilter that checks to see if the system is under maintenance,
and sends the user to a so-sorry-try-later page.

Letting them continue on is surely possible... Depends on what's in the
request.  Form fields are easy enough to handle with hidden fields, then
the 'OK' button actually submits a new request, with an extra field
that'll let you through the filter.  I tend to solve this sort of thing
by putting everything in session scope.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to