jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lybarger <mlybar...@gmail.com>
Subject posting xml as body to servlet
Date Fri, 23 Sep 2005 01:05:59 GMT
we have some servlets that process xml that they recieve as the body of the
http request. the servlet uses:
BufferedReader br = request.getReader();
to get the data that was posted to it (via an xmlhttprequest object, or
perhaps another servlet). i'd most like to setup cactus testing, since the
servlet calls out to another servlet to get more xml for processing and
ultimately returns xml. it's similar to a session facade where the ejb uses
other ejb's to do the work and just wraps the business logic.

i've used cactus in the past for testing calls to ejb's, and it worked very
nicely, but am new to servlet testing. i've browsed the examples and haven't
seen really something like what we're trying to do. can i use cactus to
"post" xml as the body of servlet request? and if so would there be an
example out there to do this type of thing?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message