• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create text file through http using URL?

 
chetan maheshwari
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to create text file on the WebServer hosting my application through http protocol.
When user clicks on link then application should write the information displayed on the browser in a text file using http protocol.
 
Jon Dornback
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not entirely sure what you are trying to accomplish - what set up are you using? If you are using JSP or servlets, then when the user clicks on the link, you can pass whatever information you want to save to the file to a JSP or servlet and use a File (java.io.File) object to write data on to the hard drive of the server. If that isn't what you are trying to do, please follow up and clarify your objectives.
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"chetan16375"
Please review the JavaRanch Naming Policy then edit your profile so that your publicly displayed name complies with the rules.
Thanks for your cooperation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!