Set content Type response

We need to export data generated by the portlet as an excel ".xls" file.

The problem we are facing is that the portal only allows us to set response

contentType to "Text/HTML".

Is there any way to set the portlet/page to allows us to set something like

response.setContentType("application/vnd.ms-excel") ?