It will be too late when you get a chance to call setContentType since
the PrintWrite object out has already created. The only way to do this
with 1.0 spec, I believe, is to use a JSP super class. In the service
method of the super class, you may call setContetType before calling the
method _jspService. However, I don't believe this is an appropriate
solution, and, as it has mentioned serveral time in the spec, that
introducing a JSP super class is something you should be very careful.
Hong Zhang
[EMAIL PROTECTED]

>-----Original Message-----
>From:  Walter Jerusalinsky [SMTP:[EMAIL PROTECTED]]
>Sent:  Sunday, May 02, 1999 7:27 AM
>To:    [EMAIL PROTECTED]
>Subject:       Re: Where is the encoding support ?
>
>did You try this?:
>
><% response.setContentType("text/html;charset=Big5"); %>
>
>(I didn't)
>
>Walter
>
>> -----Original Message-----
>> From: A mailing list about Java Server Pages specification and reference
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Jen Hsiang Huang
>> Sent: Sunday, May 02, 1999 10:08 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: Where is the encoding support ?
>>
>>
>> Yes, I can find the syntax definition in JSP 0.92
>> But it's miss in JSP 1.0, why?
>>
>> ----- Original Message -----
>> From: Yoshiyuki Kumadaki <[EMAIL PROTECTED]>
>> To: Jen Hsiang Huang <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>> Sent: Saturday, May 01, 1999 11:34 PM
>> Subject: Re: Where is the encoding support ?
>>
>>
>> > At 11:26 AM +0900 99.5.2, Jen Hsiang Huang wrote:
>> > > Where is the page encoding syntax ?
>> >
>> >
>> > See JSP 0.91 documentation for GNUJSP.
>> > This directive is deleted from JSP 0.92 .
>> >
>> > jspspec091/jsp_spec.html#directives
>> >
>> > JavaServer Pages Directives
>> > The general syntax of the JavaServer Pages directive is
>> >
>> >        <%@ (variable="value")+ %>
>> > content_type : The content_type variable defines the content type of
>> > the generated response. By default, a text/html content type is
>> > generated. But the default can be overriden by setting this directive.
>> > When used more than once, only the first tag is significant. An
>> > example is:
>> >
>> >               <%@ content_type="text/html;charset=UTF-8" %>
>> >
>> > > In GNUJSP, I can use
>> > > <%@ content_type="text/html;charset=Big5" %>
>> > >
>> > > but, how to set charactor encoding in JSP 1.0 ?
>> >
>> > Is alternative setContentType ? setContentType does not work in  GNUJSP.
>> >   setContentType(java.lang.String type)
>> >
>> >
>> >
>> > --
>> > Yoshiyuki Kumadaki/ $B7'2{ (B  $BA1G7 (B
>> >  Web Japan Co.,Ltd / $B!J3t!K%&%(%V%8%c%Q%s (B
>> > <mailto:[EMAIL PROTECTED]>
>> > <http://www.webjp.ne.jp/>
>> >
>>
>> ==================================================================
>> =========
>> 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".

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