I have a url with below pattern for passing data with get method to my rest web server developed by jersey: http://localhost:8080/myprojectName/resrtApp/request?Name=$Name&LastName=$LastName&Message=$Message&UserId=$UserId
when I used '#' character in the end of Message field, the UserId field, passed null to web server. how can I fix this problem? I have to use # sign in the end of Message!!
this is my code for getting parameters:
@POST
@Path("/request")
@Produces(MediaType.APPLICATION_XML + ";charset=utf-8")
public UserResponse getUsers(@QueryParam("Name") String Name,
@QueryParam("LastName") String LastName,
@QueryParam("Message") String Message,
@QueryParam("UserId") String UserId
) {
// simple code }