On Mon, 29 Jul 2002, Extance, Paul wrote:
> Date: Mon, 29 Jul 2002 09:54:46 -0700
> From: "Extance, Paul" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: How to abort the webapp load/deployment
>
> I already use Struts, so i'll probably just put an extra check in the
> controller.
>
> I guess i'll wait to see what Servlet Spec 2.4 has to offer for disabling
> the app loading..
>
Servlet 2.4 doesn't help you here, but Servlet 2.3 does :-). You can do
this kind of check with a Filter.
> Thanks for all the replies
>
> PaulE
>
Craig
> -----Original Message-----
> From: Mike Jackson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 1:39 PM
> To: Tomcat Users List
> Subject: RE: How to abort the webapp load/deployment
>
>
> You could uild a MVC app where there are no page accesses
> that don't pass through the controller (i.e. index.form and
> form is mapped to a servlet which does a requestDispatcher
> to index.html or index.jsp). Have the controller only pass
> people through if the validation has occured successfully.
>
> If this is greek I can give you a better example.
>
> --mikej
> -=-----
> mike jackson
> [EMAIL PROTECTED]
>
> -----Original Message-----
> From: Extance, Paul [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 12:13 PM
> To: '[EMAIL PROTECTED]'
> Subject: How to abort the webapp load/deployment
>
>
> Hello,
>
> Is it possible to write a 'validation' servlet, that does some basic checks,
> which if fail, cause the whole web application to be unavailable?
>
> This servlet would be flagged as <load-on-startup> such that it was the
> first one to execute.
>
> I'm trying to achive something similar to JBoss 2.x where if the verifier
> fails for an EAR, it does not deploy it at all. I want the similar concept
> but for my Web Application, such that critical initialization errors make
> the the whole application unavailable.
>
> I can't find anythingin in the Java Servlet Spec to indicate that this is
> possible, or anything in the tomcat documenation.
>
> Thoughts?
>
> Thanks
>
> PaulE
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>