I am having a RESTful Java Web Service that accepts a long string with '#' in between.
When I am trying to send the string to the method while calling, the string is getting split on '#' and I can retrieve the [0] value alone.
Before sending the message is intact, but after using this..
req.open("GET","https://localhost:8443/registername/resources/registerName/"+"My#Name", true);
req.send();
is the problem.
These are the first few lines in the Web Service...
@GET
@Path("/{message}")
public String validateName(@PathParam("message") String message) throws Exception{
System.out.println(message);
...}
And, it displays "My" alone.
Can anyone please help me on why this is happening? Thanks!