This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JServ, servlet and XML

 
E. Pagotto
Greenhorn
Posts: 1
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you see any errors in JServ's log files?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic