[jdom-interest] SAXBuilder.build() second try

John Muhlestein jmuhlestein at i-link.net
Thu Jul 19 15:32:34 PDT 2001

I have gone through and done what I thought would be a similar wrapper to
what is described in the FAQ for sockets to get my servlet to work and I
still seem to be hanging on the build process.

Here is the code in my servlet that I try to build my document with.
    BufferedReader br = request.getReader();
    char[] xml = new char[8000];
    CharArrayReader reader = new CharArrayReader(xml); 

    SAXBuilder builder = new SAXBuilder(true);
    Document doc = builder.build(reader);

If I view the value of the array "xml" it contains my entire document that I
am POSTing to the servlet.
I am including the .java file that represents the class I use to send data
to the servlet.

I would think passing xml to a servlet would be pretty common and I'm just
missing something simple.
Just for the record again, I am using jdom-b7 from cvs 3 days ago and Tomcat
3.2 as my servlet container with my application built into it's own context.

thanks again,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: WhlslPostTest.java
Type: application/octet-stream
Size: 2530 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010719/1a023ebb/WhlslPostTest.obj

More information about the jdom-interest mailing list