关于点击计数器的问题,我想统是通过哪个页面过来的点击~~ 用request.getRequestURI();来获取! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 getRequestURI得到的是请求的目标地址,这样取到的是我这个计数器的地址,没法知道是从哪里发出的请求。 这是我用测试的WebServer收到的HTTP请求,就是取到其中的Refer的值就可以!有没有现成的API?GET /test.htm HTTP/1.1Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword, application/vnd.ms-powerpoint, application/vnd.ms-excel, */*Referer: http://127.0.0.1:9099/test.htmAccept-Language: zh-cnAccept-Encoding: gzip, deflateUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)Host: 127.0.0.1:9999Connection: Keep-Alive 晚了一步,有空看看这些东西。http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html request.getHeader("referer");应该可以,再请教高手:各版本的IE请求里面都能得到Refer键么? 服务器端多线程和客户端多请求 jsp建立页面问题 jfreechart在aix5.3+was6.0下图片不能显示,报错NoClassDefFoundError 关于Eclipes的插件问题 相关连接怎么做? 当时我震惊了!!! 最新的Spring官网下载Link实在是找不到啊!spring framework 页面动态内容临时保存问题 如何一次上载一个文件夹? 关于weblogic的问题? 怎样把一个文本文件读进一个String[] 中,或文件中的一段读进String[]中? 如何把一个中文的字符串写入一个文件中
这样取到的是我这个计数器的地址,没法知道是从哪里发出的请求。
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shock
wave-flash, application/msword, application/vnd.ms-powerpoint, application/vnd.m
s-excel, */*
Referer: http://127.0.0.1:9099/test.htm
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Host: 127.0.0.1:9999
Connection: Keep-Alive
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html