This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Capturing response from a post  RSS feed

 
Sridhar Bhuvanapalli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alexander Pantaleev
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!