<p>I have this piece of code:</p>

<pre><code>$("#faq").click(function () {               
    var url = $.get("faq", { pagina: "page" });
    alert(url);
});
</code></pre>

<p>On "faq" responds to a Servlet that sets an attribute on the request </p>

<pre><code>....
request.setAttribute("pageFAQ", pageFAQ);
....
</code></pre>

<p>After the get jQuery prints [object XmlHttpRequest].</p>

<p>I would like to access to the attribute set in the Servlet but I don't know how to do it.</p>

I'm not sure that a servlet request attribute is shared with the client.
You can get hold of the response text in jQuery like so:
```
```
$("#faq").click(function () {                   
  $.get(
    "faq", 
    { pagina: "page" },
    function(data) {    // callback function, executed on GET success
      alert(data);
    }
  );
});
```
```
All you need to do is let your servlet return some text.