HttpServletResponse in Dynamic Javascript Pages




I am investigating how to use Dynamic Javascript Pages for a project but I have found a problem when it gets to use the 'response object' , which apparently seems to be a HttpServletResponse type of object. I am unable to find any particular documentation, and the generic documentation about this kind of object is not valid, as for example, some methods like addHeader, setHeader and many others do not work.

Are you aware of some documentation or some cookbook I can use as a reference?

Thanks very much in advance