This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to get error raised page in jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How to get error raised page in jsp?" Watch "How to get error raised page in jsp?" New topic
Author

How to get error raised page in jsp?

Mohanasundar Nagarajan
Greenhorn

Joined: Mar 23, 2010
Posts: 19
Dear,

I’m facing problem with getting URL of the jsp page.


Here is the scenario,

I have configured error pages for 404 and 500 in web.xml of tomcat application server. Whenever error raises server displaying configured page. There I want to get from which URL this page is invoked (Actually error occurred page url).

In error page I have written


It is displaying error page URL. But I want the URL I’m seeing in the address bar.


Thanks,
Mohanasundar
Senior Software Engineer
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2407
See the section "New error attributes" in http://www.servlets.com/soapbox/servlet23.html
Mohanasundar Nagarajan
Greenhorn

Joined: Mar 23, 2010
Posts: 19
Tim Moores wrote:See the section "New error attributes" in http://www.servlets.com/soapbox/servlet23.html


Thanks a lot. I got the solution.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to get error raised page in jsp?
 
Similar Threads
The customer is not always right
session issues with Ctrl-N
How to deploy a Web module?
Handling response.redirect errors in JSP page
html-only jsp page displaying source in safari browser on a mac