amit kumar goyal wrote:Thankyou everybody for the replies....
I cannot set the target=_blank because it is not a link but its a button to generate the xml. The button submits the request to a servlet which generates the xml. I have set the content type as application/xml and content disposition as attachment for the response headers. But when I open the file from the dialog box it opens the file in the same browser window. I want to open it in a pop up.