Help on servlet

Hi, currently I am trying to run the servlet through TCPMon, and the result is:

HTTP/1.1 200 OK

Content-Length: 0

Date: Tue, 22 May 2007 01:57:15 GMT

Server: Apache-Coyote/1.1

May I know why is it not working? Thanks

(Below is the codes)

import java.io.*;

import javax.servlet.*;

import javax.servlet.http.*;

import java.beans.*;

public class a extends HttpServlet {

public void doPost(HttpServletRequest request,

HttpServletResponse response)

throws ServletException, IOException {

b s = new b();

s.xmlToBean(request.getInputStream());

}

}

import java.io.*;

import java.math.*;

import org.apache.xmlbeans.*;

import org.wirelessVillage.csp11.*;

import org.wirelessVillage.pa11.*;

import org.wirelessVillage.trc11.*;

import java.beans.*;

public class b

{

public WVCSPMessage xmlToBean(InputStream in)

{

try

{

WVCSPMessageDocument doc = WVCSPMessageDocument.Factory.parse(in);

WVCSPMessage message = doc.getWVCSPMessage();

System.out.println("session type is: " + message.getSession().getSessionDescriptor().getSessionType().xmlText());

return message;

}

catch(Exception e)

{

e.printStackTrace(System.err);

}

return null;

}

}

[1391 byte] By [noobboya] at [2007-11-27 5:03:29]
# 1
The headers look like as expected: status 200 and a contentlength of 0.If you're thinking that the System.out.println() actually writes to the HttpServletResponse, you're wrong.
BalusCa at 2007-7-12 10:21:34 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...