?
Solved

exceptions and http referer

Posted on 2003-04-01
2
Medium Priority
?
166 Views
Last Modified: 2011-09-20
I have a site with a lot of jsp pages. For example:
http://www.mysite.gr/page1.jsp
http://www.mysite.gr/page2.jsp
http://www.mysite.gr/errorpage.jsp

The errorpage.jsp is the error page that is loaded when an exception occurs.

Question: At the error page, is it possible to pass to a string variable the http referer, from the page that causes the exception?

For example, if page1.jsp has an exception

in the error.jsp page I want to have a string variable with value "http://www.mysite.gr/page1.jsp"

Thanks in advance!
0
Comment
Question by:thanassis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Author Comment

by:thanassis
ID: 8245279
thanks guys i found the answer!

put

request.getRequestURL()

at the errorpage.jsp
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8245549
PAQ'd and points refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month11 days, 11 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question