Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to refer to a resource outside of the web application

 
vineet kaushik
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be doing any sharing at build time, not at run time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic