I have this URI:
http://IP5:port/notification/myServlet.do?method=myMethod¶m1=[08]&method2=anotherParam¶m0=[07,04,06]
I want to obtain the URI's last part in the same order:
method=myMethod¶m1=[08]&method2=anotherParam¶m0=[07,04,06]
But' I can't discover how:
I can see in the request
the field input
, in order to do a substring after of ?
character...
the methods: request.getRequestURI()
and request.getRequestURL()
is not working for me.
It looks like request
is an HttpServletRequest
. If so, you should be able to get what you are looking for using request.getQueryString()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.