From: gaosheng <[EMAIL PROTECTED]>
Subject: **UNKNOWN CHARSET**
Date: Wed, 10 Mar 1999 11:24:08 +0800
Message-ID: <>
shgao> but when I used the javac to complie my .java fie it told me that :
shgao> Servlet.java:50: Method getWriter() not found in interface javax.servl
shgao> et.http.HttpServletResponse.
shgao> PrintWriter pw = res.getWriter();
shgao> why?? I am puzzled! can you tell me the reason? thanks in advance!!
You are using older version of Servlet API, and there is no
getWriter() method. I recommand you to use Servlet API
version 2.0. Version 2.0 has many good features.
But, did you try the second way that I mentioned before ?
OutputStreamWriter osw =
new OutputStreamWriter(response.getOutputStream(), "gb2312");
PrintWriter pw = new PrintWriter(osw);
pw.println("<chinese character>");
This is available way even if you are using older version of
Servlet API.
---
Yoko Kamei Harada
Media Network Laboratories, R&D Group
Oki Electric Industry Co., Ltd.
___________________________________________________________________________
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