wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
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: 61311
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to refer to a resource outside of the web application