PDA

View Full Version : Handle Form submit result



jhakda
9 Jan 2011, 7:40 AM
Hi All
I have a form and i need to perform a data save so i submit the form using

form.submit();

In my controller, based on success or failure, i return a List of String values.
How do i access this result?
I can see that the request goes to the correct method in the controller and it creates the list of string to return.
However, i get a file download message.
How do get the response back?

Thanks

Jhakda

Ersmarker
25 Jan 2011, 3:05 AM
You have to make sure that the response is HTML.

response.setContentType("text/html")