File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes How to refer to a resource outside of the web application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How to refer to a resource outside of the web application" Watch "How to refer to a resource outside of the web application" New topic
Author

How to refer to a resource outside of the web application

vineet kaushik
Greenhorn

Joined: Aug 05, 2009
Posts: 13
Hi Guys,

I want to access a resource(jsp file) outside of the web application.

e.g
I want to show http://localhost:8080/abc/jsp/1.jsp file in case my application(http://localhost:8088/xyz/2.jsp) shows any exception
I tried it in this way
<error-page>
<error-code>500</error-code>
<location>http://localhost:8080/abc/jsp/1.jsp</location>
</error-page>


please help me .
Thanks,
Vineet kaushik
Nicola Garofalo
Ranch Hand

Joined: Apr 10, 2010
Posts: 308
You can't, don't do it.
Write your own error.jsp and place it somewhere in your web content.
You don't need to take another application's error page.


Bye,
Nicola
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56197
    
  13

You should be doing any sharing at build time, not at run time.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to refer to a resource outside of the web application
 
Similar Threads
Displaying custom error page
Url of web aplpication
Multilevel context path for ROOT app does not work
Download Link ...??
Tomcat Error 404