File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Capturing response from a post Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Capturing response from a post" Watch "Capturing response from a post" New topic
Author

Capturing response from a post

Sridhar Bhuvanapalli
Greenhorn

Joined: Feb 27, 2002
Posts: 2
If I make a call to http://server_address/directory/login.asp
and that returns an XML string....how would I go about making this call and capture the XML string.


-Sridhar
Alexander Pantaleev
Greenhorn

Joined: Jun 14, 2002
Posts: 5
Try using a filter, and a standing stream inside it. To be eligible for that, the filter and the .asp file have to be in the same context (which means that the .asp file has to be called through http://your_jsp_container/context_path/something.asp).
For information on filters and standing streams, you can check the java.sun.com tutorial on filters at http://java.sun.com/products/servlet/Filters.html
Hope that helps,
Alexander
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Capturing response from a post