Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JServ, servlet and XML

 
E. Pagotto
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I created a servlet that response an XML reply to a XML request on the
url.
The code for response is the following:


String xml = getXml(request, response);
response.setContentType("text/xml");

OutputStream out = response.getOutputStream();
out.write(xml.getBytes());
out.flush();
out.close();


The problem is that it works with Apache JServ 1.1 for Windows, but it
doesn't work with JServ 1.1 for Solaris; this is the response result:

<HTML>
<BODY>
</BODY>
</HTML>

Why this?
Thanks in advance for any suggestion.
Bye,

E.P.
[ December 20, 2004: Message edited by: E. Pagotto ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you see any errors in JServ's log files?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic