Im using Jax-rs and Im trying to find a way to access the last parameter of a url.
For example: http://localhost:8080/myproject/api/movie?userid=test
I want to get the value test out of my request.
Im using Jax-rs and Im trying to find a way to access the last parameter of a url.
For example: http://localhost:8080/myproject/api/movie?userid=test
I want to get the value test out of my request.
You need to use @QueryParam
For your URL
http://localhost:8080/myproject/api/movie?userid=test
@QueryParam("userid") int userid;
Now you can use the value
System.out.println(userid);