Sateesh:

Here's something which works in our jsps:

try{
        Response.setContentType("application/x-unknown-content-type-Excel.CSV;
charset=us-ascii");
        Response.setHeader("Content-Transfer-Encoding", "7bit");
        Response.setHeader("Content-disposition", "inline;
filename=\"DefaultExcelFileName.csv\"");
        out = Response.getWriter();
        out.println("blah blah..");
}
catch( etc..

Cheers,
Geeta

Sateeshkumar_Karnam wrote:

> Hi all
>         Please pass on some working code that generates content-type
> ms-excel. My servlet has to get information from the database and generate
> response in an excel sheet. Please pass on information.
>
> Thanks in advance
> Sateesh.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to