----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
On Mon, 17 Jan 2000, Tim Trentham wrote:
> I checked around on the java.apache.org site (including the FAQ) and
> couldn't find anything that mentions this. Basically, I want 404 errors to
> go to a customized error page. This is usually handled by setting the
> ErrorDocument directive in the Apache conf file. It seems that pages that a
> parsed by ApacheJSSI ignore this directive and instead you get a page with
> text that is something like this....
>
> "404 Java Server Side Include Error
>
> Requested URI /test.jhtml is not a file. Please, make sure you request a
> java server side include file."
>
> What is the best way to go about getting it to go to a customized error
> page?
Modify the JSSI source code to do error handling differently... The output
is generated by org.apache.servlet.ssi.PageParserServlet.error(). You
could modify it to send back a redirection to your custom error page.
Still better: add this as an option, switched on by a parameter of the SSI
servlet!
Ciao
Peter
--
URBAN Peter Mail: [EMAIL PROTECTED]
Federal Institute of Technology WWW: http://lsewww.epfl.ch/urban
EPFL-DI-LSE, office INF 233 Phone: (+41 21) 693 5354
CH-1015 Lausanne, Switzerland Fax: (+41 21) 693 6770
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]