Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

exceptions and http referer

Posted on 2003-04-01
2
Medium Priority
?
170 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Choosing the right mix of apps is very much necessary for CPAs for making the most of the latest technology through which they can boost their growth.
I’m willing to make a bet that your organization stores sensitive data in your Windows File Servers; files and folders that you really don’t want making it into the wrong hands.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Loops Section Overview
Suggested Courses

580 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