Pete,

Read the spec. Files under WEB-INF cannot be served directly by Tomcat.

You need a security constraint on a folder under your doc root.
See the code in the manager for some ideas.


Or have your servlet stream the file back to the client, but this is not
recommended as it can cause security issues.
Or I think you can also use a filter, but I'm not up on filters.

Doug
www.parsonstechnical.com


----- Original Message ----- 
From: "Peter Guyatt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 10:41 AM
Subject: serving static HTML pages from a servlet


> Hi There,
>
> I would like to serve a static web page using Tomcat.
>
> The problem I have is that a use must have been authencated before they
can
> view this page.
>
> I have a servlet that takes care of this and then it should forward the
user
> to the static page. E.g. /WEB-INF/English/Welcome/Welcom.htm
>
> However all I get is a 404 error, I am sure the path is ok.
>
> Any suggestions
>
> Thanks
>
> Pete
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to