File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes JServ, servlet and XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "JServ, servlet and XML" Watch "JServ, servlet and XML" New topic
Author

JServ, servlet and XML

E. Pagotto
Greenhorn

Joined: Dec 20, 2004
Posts: 1
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
Do you see any errors in JServ's log files?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JServ, servlet and XML
 
Similar Threads
EL question
HFSJ EL e.g. page 371
Tomcat problem
really simple servlets,but why second one not work
XmlHttpRequest.responseXML not populated