> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Joe Shevland
> Sent: Friday, March 12, 1999 10:29 AM
> To: [EMAIL PROTECTED]
> Subject: Content types
>
>
> Hi,
>
> I'd like to be able to cause one of my JSP's to return a CSV (comma
> seperated value) file by using the <%@content_type%> directive.
>
> I've started off with the absolute basics:
>
> ---
> <%@ content_type="text/csv;charset=UTF-8" %>
> <%= Test1,Test2,Test3 %>
> ---

Just to further clarify that a bit, I didn't actually put line 2 in like
that, I think it may have been:

<% out.println( "field1,field2,field3\r\n" ); %>

Regards,
Joe.

> But the server barfed on this, 'Internal Server Error 500', under Apache
> 1.3.4/JServ 1.0b3/GnuJSP/OpenSSL. Do I have to initiate a session with the
> client first, or am I doing something else wrong with the output?
>
> Any thoughts?
>
> Cheers,
> Joe.
>
>
> --
> Joe Shevland
> Turnaround Solutions Pty. Ltd.
> mailto:[EMAIL PROTECTED]
> http://www.TurnAround.com.au
> Ph:  +61-03-6224-9146
>
> ==================================================================
> =========
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff JSP-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to