日期:2014-05-18  浏览次数:20658 次

请问如何获取页面的url和address,怎么都搞不定,查了好多
在一个页面上,用火狐firefox点右键看页面信息,
有个address和一个Referring   url两个参数.
有时是一样有时不一样.
比如
address是http://localhost:8080/test/diseaseother.do
Referring   url却是http://localhost:8080/test/diseaseother.do?method=load&pid=7550000347

我用location.href只能获取到address的值,而不能获取到Referring   url的值

我现在要获取到Referring   url的值
期待大家帮忙

------解决方案--------------------
String strLocation = request.getHeader( "Referer ");???
------解决方案--------------------
<html:base/>