xStream
The OP never said the XMLs being passed to and fro were classes serialized as XML.
My jsp page is calling
Your JSP page should not call such things. It is a view. Do not parse XML in a JSP. The next person to maintain the code will thank you
Parse the XML with staX and attach whatever you want to display into one of the scopes.
please give me some sample code for calling http based api with xml file as request and reading the response from xml file in jsp.....
No one can do this. The calls can be web service over
SOAP calls / Web services without SOAP / REST based invocations / Post based invocations that do not follow standards / Mutipart invocations that do not follow any standard etc etc. A client like the commons HTTP client *might* help. But unless you provide more information, the help you receive will be limited