You should use a java.io.Writer to display text based data back to the client.
If you use ServletOutputStream, then the data will not be encoded properly.
Try this instead:
PrintWriter pw = new PrintWriter(response.getOutputStream())
pw.println("Hello World");
-----
Spike Washburn
IBM WebSphere Application Server
Internet E-mail: [EMAIL PROTECTED]
Gillard dIon <[EMAIL PROTECTED]> on 05/22/99 08:00:47 AM
Please respond to "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Donald Washburn/Raleigh/IBM)
Subject: Re: WebSphere OS/390 Servlet-Response
I'd guess the encoding on the response is not what the browser is expecting....probably EBCDIC not Unicode/Ascii -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au Play: http://www.trongus.com roger wegner <[EMAIL PROTECTED]> Sent by: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]> 22/05/99 02:27 AM Please respond to "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." To: [EMAIL PROTECTED] cc: Subject: WebSphere OS/390 Servlet-Response Hello, today I started testing WebSphere on OS/390. I started with a simple servlet (a GenericServlet, not a HttpServlet) that writes a constant string (let's say "Hello World", nothing more) into the ServletOutputStream. When I receive the servlet's output with my Netscape Navigator 4.5 I see a very funny string, but not the expected "Hello World". Doing the same thing with WebSphere on NT I get what I expect. What do I have to do to get the same result from both application servers? Thanx a lot and a nice weekend for all of you Roger -- _______________________________________________________________________ Roger Wegner Phone : +49 (0)231 135 2186 SIGNAL Versicherungen Fax : +49 (0)231 135 13 2186 Alter M�hlenweg e-mail: [EMAIL PROTECTED] D-44139 Dortmund _______________________________________________________________________ ___________________________________________________________________________ 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
I'd guess the encoding on the response is not what the browser is expecting....probably EBCDIC not Unicode/Ascii
--
dIon Gillard, Multitask Consulting
Work: http://www.multitask.com.au
Play: http://www.trongus.com
| roger wegner <[EMAIL PROTECTED]>
Sent by: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]> 22/05/99 02:27 AM
|
To: [EMAIL PROTECTED] cc: Subject: WebSphere OS/390 Servlet-Response |
Hello,
today I started testing WebSphere on OS/390. I started with a simple
servlet (a GenericServlet, not a HttpServlet) that writes a constant
string (let's say "Hello World", nothing more) into the
ServletOutputStream. When I receive the servlet's output with my
Netscape Navigator 4.5 I see a very funny string, but not the expected
"Hello World". Doing the same thing with WebSphere on NT I get what I
expect. What do I have to do to get the same result from both
application servers?
Thanx a lot and a nice weekend for all of you
Roger
--
_______________________________________________________________________
Roger Wegner Phone : +49 (0)231 135 2186
SIGNAL Versicherungen Fax : +49 (0)231 135 13 2186
Alter M�hlenweg e-mail: [EMAIL PROTECTED]
D-44139 Dortmund
_______________________________________________________________________
___________________________________________________________________________
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
