cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling: custom error page

Former Member
0 Kudos

Hi,

I would like to create my custom error pages in portal web dynpro applications. If exception occurs user don't see a stack trace instead it he see my page.

The simplest way is to define my error page in web.xml. I suppose that webdyn pro web.xml file is placed here: 0:/usr/sap/EP0/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/tcwddispwda/servlet_jsp/webdynpro/dispatcher/root/WEB-INF/. Is it?

I placed my errorPage.jsp to 0:/usr/sap/EP0/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/tcwddispwda/servlet_jsp/webdynpro/dispatcher/root/ and wrote in the web.xml the next:

<error-page>

<exception-type>java.lang.Exception</exception-type>

<location>/errorPage.jsp</location>

</error-page>

<error-page>

<error-code>500</error-code>

<location>/errorPage.jsp</location>

</error-page>

<error-page>

<error-code>503</error-code>

<location>/errorPage.jsp</location>

</error-page>

But theree is no effect.

There is another way to create custom error pages? Or it's nessecary to use another web.xml? ...

Please could you help me?

Thanks in advance.

Edited by: denis2009 on Oct 26, 2009 2:43 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Also I tried to change the web.xml, placed here: 0:/usr/sap/EP0/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/,

but also there are no results.