Hi all,

        I'm trying to redirect a 404 Page Not Found error from my Apache
server to my custom error page on the WebLogic server.
        I need the original URL requested to be captured and a sensible URL
made out from it, so I can do redirections.

        Problem is my custom error handler JSP cannot receive the original
request made by the client, but instead gets the URL of the error page
itself.

        eg:

        Client types in http://blabla.com/myownpage
        Page does not exist so Apache redirects to
http://weblogicserver/mydomain/customerrorpage.jsp

        request.getRequestURL() etc give me
        "/mydomain/customerrorpage.jsp" and not the original URL,

        I've tried REFERER as well but that is null.


        Any idea how I can go about it?

        I am not supposed to use JSP code on the Apache side, but I can use
an HTML page with Javascript to get the URL (on Apache).
        I was thinking of then doing a Javascript redirect to the WebLogic
Server but couldnt find the correct code to get the URL in the first place.

        Thanx in advance
        Jose

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to