java web service get parameter while using post method -


i did java rest web service using method.the web service works fine method.but when try post method doesn't display anything. below simple code test post method. please me in solving issue.

@path("/post") public class testpost {      @post     @path("/test")     public string post(@queryparam("param") string msg) {         string output = "post:hello: "+msg;         return output;     } } 

 public string post(@queryparam("param") string msg) { 

there no @queryparam post. get.

for post, should use @requestparam


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -