| 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
|
|
|
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]
|
 |
 |
|
|
subject: How to refer to a resource outside of the web application
|
|
|