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]>

Reply via email to