Hi,

.ic is the extension mapped to the controllers of my spring webapp.

The Excel is generated by a controller (servlet): this controller execute
this instructions

response.setContentType("application/excel");
response.setHeader("Content-Disposition","attachment; filename=\""  
nomeFileExcel  "\"");
response.flushBuffer();

For the Excel the problem is repetitive but also for other "normal" html
page (generated by jsp) the text/plain content/type was returned with random
frequency.

If on apache I add AddType *.ic text/html all the html page are ok but the
excel are printed with binary format on the browser. 

So AddType is not the correct solution: I need that the content type is the
content type returned by tomcat.

Regards,
Marco
-- 
View this message in context: 
http://www.nabble.com/bad-content-type-mod_jk-1.2.27-tp20892496p20898121.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to