请教如何在servlet中获取完整的URI# Java - 爪哇娇娃
n*3
1 楼
我有一个如下格式的URI:
http://trial1.myserver.net/mywebapp/test/parseURL#GroupTree=g23h177&HostGraph=ds214
parseURL是一个很简单的servlet. 它调用getPathInfo, getQueryString等api,然后
返回他们的结果。
这是输出:
getPathInfo() = null
getQueryString() = null
getRequestURI() = /mywebapp/test/parseURL
getRequestURL() = http://trial1.myserver.net/mywebapp/test/parseURL
getServletPath() = /test/parseURL
请问有什么办法可以得到整个URI,即:
/mywebapp/test/parseURL#GroupTree=g23h177&HostGraph=ds214
或
/test/parseURL#GroupTree=g23h177&HostGraph=ds214
(注意:在pa
http://trial1.myserver.net/mywebapp/test/parseURL#GroupTree=g23h177&HostGraph=ds214
parseURL是一个很简单的servlet. 它调用getPathInfo, getQueryString等api,然后
返回他们的结果。
这是输出:
getPathInfo() = null
getQueryString() = null
getRequestURI() = /mywebapp/test/parseURL
getRequestURL() = http://trial1.myserver.net/mywebapp/test/parseURL
getServletPath() = /test/parseURL
请问有什么办法可以得到整个URI,即:
/mywebapp/test/parseURL#GroupTree=g23h177&HostGraph=ds214
或
/test/parseURL#GroupTree=g23h177&HostGraph=ds214
(注意:在pa