Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Uploading file  RSS feed

 
trupti nigam
Ranch Hand
Posts: 640
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

thanks.
trupti
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!