wood burning stoves 2.0*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Capturing response from a post
 
Similar Threads
basic windows authentication
Servlet
Windows basic authentication
Windows Basic Authentication
jsp servlet mapping in web.xml (Tomcat 5.5)