I am trying to sent the content type in a portlet doExcelselect method
using :
<<<
MimeType mt = new MimeType("application/vnd.ms-excel");
// rundata.setContentType( mt.getContentType() );
// rundata.setCharSet( mt.getCharSet() );
rundata.setContentType("application/vnd.ms-excel");
// rundata.getResponse().setContentType("application/vnd.ms-excel");
VelocityPortlet portlet = (VelocityPortlet)context.get("portlet");
Log.debug("portlet supports type "+portlet.supportsType(mt));
// implementation junk
// just before return
Log.debug("doExcelselect content type is
"+rundata.getContentType());
The portlet.supportsType() returns true, and the last debug
rundata.getContentType() returns application/vnd.ms-excel.
Does this logic work?
The idea is to build an html table, set the content type to
application/vnd.ms-excel, and let the browser show the spreadsheet (I.E)
or ask for an application (Netscape).
This works in other (non-Jetspeed) servlets, and I am wondering if
anyone has had success with this, or something like it.
Thanks
Jeff
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>