how to get a object from servlet into js

i wanna know that how can we get a string object from the servlet to the javascript????

Re: how to get a object from servlet into js

Use ajax.

If you want more detailed answer, give more technical details about the issue.