0

I have this URI:

http://IP5:port/notification/myServlet.do?method=myMethod&param1=[08]&method2=anotherParam&param0=[07,04,06]

I want to obtain the URI's last part in the same order:

method=myMethod&param1=[08]&method2=anotherParam&param0=[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.

1

1 Answer 1

1

It looks like request is an HttpServletRequest. If so, you should be able to get what you are looking for using request.getQueryString().

Sign up to request clarification or add additional context in comments.

1 Comment

Muchas gracias.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.