Thanks for your reply.
yes, I am using rpc for the previous code.
to post a form, I remember FormPanel. but the example above is just a simplified case. in real, I need to pass a search history Map (time as the key, criteria string as the value) to servlet and use the servlet to export the Map content to a text file, Using FormPanel, how to pass the Map to servlet?
Also, seem this forum cannot edit post, so how to redact the titles of my previous attachment? delete it?
On Tuesday, June 19, 2012 11:04:46 AM UTC+8, Joseph Lust wrote:
Are you calling this from an RPC? It looks like you are (rpc.InvocationException). An RPC expects an RPC serialized response, not what it is getting. To get a file back like this, you'll need to just open it like a new browser window.
i.e. window.open("yourServerUrl","_blank");
The above will get stopped by popup blockers. However, if you open it by posting a form to the URL with a target="_blank" tag, it should just open.
If you're not using RPC, the docs say it is a communications error, which could be many things.
Also, you might want to redact the titles of those images as they show your whole package name.