IE is really bugged in this regard.

It uses partly mime-type but mainly  the extension () to understand what to
do with a file.
The same problem is with the FOP guys that generate PDF, who have resorted
to use the same trick.
And it caches somehow the type, so if you request an xml flie and then an
html one it sometimes gets stuck and tries to render the latter as the
former, resulting in an error.

Thank you MacroHard!

--
Nicola Ken Barozzi                   [EMAIL PROTECTED]
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
--------------------------------------------------------------------

----- Original Message -----
From: "Glen Stampoultzis" <[EMAIL PROTECTED]>
To: "POI Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 6:00 AM
Subject: Re: POI and JSP


> Devious.
>
> I like it.
>
> ----- Original Message -----
> From: "Michael Zalewski" <[EMAIL PROTECTED]>
> To: "POI Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 22, 2002 11:58 AM
> Subject: RE: POI and JSP
>
>
> > Hehe. To get around it with a JSP, just arange to take a parameter that
> ends
> > in
> > the string ".xls".
> >
> >   http://some.such.com/myServlet?myRealParam=123&billgates=dummy.xls
> >
> > Then just ignore the dummy parameter in the JSP.
> >
> > -----Original Message-----
> > From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 21, 2002 9:30 PM
> > To: POI Users List
> > Subject: Re: POI and JSP
> >
> >
> > Ferruccio Spagna wrote:
> >
> > >>Personally I think JSPs are TOTALLY inappropriate for (well just about
> > >>everything other than demonstrating how to program non object oriented
> > >>code) binary output.  I would highly recommend you use a servlet.
> > >>
> > >>
> > >
> > >I can agree with you. Nevertheless I tried to write a clean JSP page
with
> > >some POI code and the Excel file was finally created and avalaible via
a
> > >link on the same page. Why not? The only problem is now that IExplorer
> > >doesn't open Excel automatically (Netscape does), or can I do something
> for
> > >this? I tried to stream to the client an xls from a servlet that
> specifies
> > >the content-type without having better result.
> > >
> > >
> > Some versions of IE ignore the content-type and use the file extension.
> >  With a servlet you can work around this by mapping a handler.  You can
> > probably do this with a JSP somehow or other, but I'm not sure how.
> >
> > -Andy
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


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

Reply via email to