You have more than one choice....
1. The request object should have a header called "referer" (check the spelling). This should tell you who refered the error page URL.
Tomcat gives an example of how to get the headers. Take a look at that source code.
Personally, I would try this first.
2. In your
JSP, throw a Custom Exception something like ExceptionFromMyFirstJSP. In the error page try catching the exception and see
how it maps. Thus you know which JSP in your appln throws this error. This is kinda like the
Exception/Error page support that Tomcat 4.0 supports with the newer Specs.
- satya