mgchetla / jmesa

Automatically exported from code.google.com/p/jmesa
0 stars 0 forks source link

Jmesa Ajax call missing content-type #280

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi All,

I'm currently using Jmesa 2.4.6 (Yes I know I need to update at some point :) )

However were experiencing issues where one user is blocking all requests that 
don't have a Content-type set on the response headers. 
I notice that any ajax updates to the table don't have a content type set.  

I'm guessing it because Excel and pdf export use the ajax to also write to the 
response.

> String ajax = this.ajax;
> if (ajax != null && ajax.equals("true")) {
>    byte[] contents = this.htmlTable.getBytes();
>    response.getOutputStream().write(contents);
>    return null;
> }

I was wondering if this is something that's already been fixed in the new 
version and I just need to update or if its something I've done wrong and 
should be doing something else instead of above.

Many Thanks
James

Original issue reported on code.google.com by jsparry....@gmail.com on 13 Sep 2010 at 10:26

GoogleCodeExporter commented 8 years ago
When returning text you should not have to set the content type...we can 
revisit this if needed.

Original comment by jeff.johnston.mn@gmail.com on 10 Mar 2011 at 8:58