/** * We are just starting the upload process. Record where we came from, so if they hit "cancel" we * know where to send them. If we have problems, just clear it. */ private void captureReferringUrl(VitroRequest vreq) { String referrer = vreq.getHeader("Referer"); if (referrer == null) { vreq.getSession().removeAttribute(ATTRIBUTE_REFERRING_PAGE); } else { vreq.getSession().setAttribute(ATTRIBUTE_REFERRING_PAGE, referrer); } }