I have a servlet that creates a xml file and sends it using serveletOutputStream.
How can I display the contents of the file on the JSP?
Right now I have a single JSP that is not used to display the output to client.
The request comes in as plain text over HTTP and response is sent over HTTP Connection. there is no view for my application.
Your post is full of contradictions. You named it "uploading file", but there is no talk of uploading (moving a file from the client to the server). Then you talk about JSP pages, but claim that there is no view. Which is it?
You'll need to be a lot clearer about what you are trying to accomplish before anyone will be able to help you.