i do a

FacesContext.getCurrentInstance().getExternalContext().redirect(url);

This tells the browser to redirect to a new url, is the url your servlet, or your file?

I think that you want to do a forward and not a redirect.

I googled redirect vs forward and got this page: 
http://www.javapractices.com/topic/TopicAction.do?Id=181

I hope the explanation helps.

Another thing is that with openoffice, the file works fine, so; is safe for
me to assume that the problem is not in the downloaded data ???

If the forward doesn't help then it could be a problem with the Excel file.

What version of POI are you using? Is the file one that you can share?

HTH
Dave

On Jun 25, 2009, at 1:53 PM, jmiguel77 wrote:


Hi

As a matter of fact, the seam people told me to use a servlet to fix another problem. This servlet addresses everything with *.xls extension; and i do a FacesContext .getCurrentInstance().getExternalContext().redirect(url); to get the file, so with the redirect i assume that there is no previous output
before the download of the file

the mime type is set to: application/vnd.ms-excel

Another thing is that with openoffice, the file works fine, so; is safe for
me to assume that the problem is not in the downloaded data ???

thanks for your help
--
View this message in context: 
http://www.nabble.com/Problem-with-excel-opening-POI-generated-file-tp24206680p24210854.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to