title: Rest Web service parameter issue
body: <p>am using below code to test a basic web service. When am passing normal string it works fine for example - <a href="http://localhost.com:8080/CheckRest/rest/pmg?p1=xyz" rel="nofollow noreferrer">http://localhost.com:8080/CheckRest/rest/pmg?p1=xyz</a>. It displays <strong>HELLO xyz</strong></p>
  
  <p>But when I add '#' to the URL it doesnt give the right output for example - <a href="http://localhost.com:8080/CheckRest/rest/pmg?p1=xyz#abc" rel="nofollow noreferrer">http://localhost.com:8080/CheckRest/rest/pmg?p1=xyz#abc</a>. It then displays <strong>HELLO xyz</strong> instead of <strong>HELLO xyz#abc</strong></p>
  
  <pre><code>package com.check.ws;
  
  import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.Produces;
  import javax.ws.rs.QueryParam;
  import javax.ws.rs.core.MediaType;
  
  @Path("/pmg")
  public class CheckCall {
  
       @GET
        @Produces(MediaType.TEXT_PLAIN)
        public String sayPlainTextHello() {
          return " ";
        }
  
        // This method is called if XML is request
        @GET
        @Produces(MediaType.TEXT_XML)
        public String sayXMLHello() {
          return "&lt;?xml version=\"1.0\"?&gt;" + "&lt;pmg&gt; &lt;/pmg&gt;";
        }
  
        // This method is called if HTML is request
        @GET
        @Produces(MediaType.TEXT_HTML)
        public String sayHtmlHello(@QueryParam("p1") String par1) {
          return "&lt;html&gt; &lt;body&gt; HELLO &lt;/body&gt; &lt;/html&gt;"+par1;
        }
  }
  </code></pre>