<p>I just installed Glassfish V2 on my local machine just to play around with it.</p>

<p>I was wondering if there is a way to retrieve a param passed in by the GET HTTP method.</p>

<p>For instance,</p>

<pre><code>http://localhost:8080/HelloWorld/resources/helloWorld?name=ABC
</code></pre>

<p>How do I retrieve the "name" param in my Java code?</p>

Like this:
```
```
@Path("/helloWorld")
@Consumes({"application/xml", "application/json"})
@Produces({"application/xml", "application/json"})
@Singleton
public class MyService {
    @GET
    public String getRequest(@QueryParam("name") String name) {
            return "Name was " + name;
    }
}
```
```