Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
Servlets
How to refer to a resource outside of the web application
vineet kaushik
Greenhorn
Posts: 13
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 308
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Sheriff
Posts: 67750
173
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You should
be doing any sharing at build time, not at run time.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Multilevel context path for ROOT app does not work
Download Link ...??
Tomcat Error 404
Displaying custom error page
Url of web aplpication
More...