String getting split on '#' when passing to a RESTful Web Service in Java through GET method -


i having restful java web service accepts long string '#' in between.

when trying send string method while calling, string getting split on '#' , can retrieve [0] value alone.

before sending message intact, after using this..

req.open("get","https://localhost:8443/registername/resources/registername/"+"my#name", true); req.send(); 

is problem.

these first few lines in web service...

@get @path("/{message}") public string validatename(@pathparam("message") string message) throws exception{     system.out.println(message); ...} 

and, displays "my" alone.

can please me on why happening? thanks!

in urls, # sign indicates "named anchor," local javascript, , not sent remote server, when have url:

https://localhost:8443/registername/resources/registername/my#name 

name isn't sent server. need use different split character.

see what when link has pound "#" sign in it or http://www.hypergurl.com/anchors.html more information.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -