This discussion is archived
7 Replies Latest reply: Jun 19, 2011 11:22 PM by John Stegeman RSS

How to display ECID in an error page

John Stegeman Oracle ACE
Currently Being Moderated
Hello everyone,

I have a very simple servlet-based application that I am deploying to Oracle Fusion Middleware (version 11.1.1.4). I also have an error page directive in my web.xml that displays a user-friendly page (i.e. "call the helpdesk") when my servlet sends HTTP 400/500 responses (which I do intentionally on certain error conditions).

In order to help in diagnosis of the problems, I'd like to include something in the error page that the user could quote to the help desk to assist them in finding the specific log messages (which my servlet has duly logged) related to the request. The obvious thing to use would be the ECID of the request. However, I cannot, after looking through lots of documentation, figure out how to display the ECID in the error page. As my request is going through WebCache, I've tried turning on the diagnostics from the webcache (which the docs seem to say will cause the information to be included in either the response headers or the HTML body), but this doesn't seem to work.

I appreciate any pointers, especially pointers to the docs!

Thanks,

John

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points