Hi All,
We are facing a strange problem when we type in the following URL http://<host>:<port>/irj/blah.jsp
The error message says that the file blah.jsp does not exist and then gives the complete directory structure for e.g. c:\usr\sap\<instance name>\JC<Instance Number>\.....irj\.....\blah.jsp does not exist.
We want to prevent this directory structure from getting displayed and display a generic error message.
Please let us know how this will be possible.
Regards
Sidharth
Message was edited by: Sidharth Deshpande
Hi,
If you want to display your error message you must add in "apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\web.xml" file the following tags:
<error-page>
-
<error-code>404</error-code>
-
<location>/my_error_page.jsp</location>
</error-page>
Now when error code 404 occurs then this my_error_page.jsp will be displayed instead of default error page.
In my_error_page.jsp you may process the errors as you want.
Best Regards,
Violeta Georgieva
Message was edited by: Violeta Georgieva
Add a comment