Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in doPut and doPost

 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When i want to upload a file,I should use Post method and once the control reaches the servlet we have to process the file and store it on the server.

When we use Put method this will also place the file on the server and associates the location with the URI and next time when we use the same URL it will display the file that was place by Put method.

Post is for uploading the file and Put is for Publish the File is this correct. I need a simple working example for this i searched in this forum and net could'nt get musch info aprt from what i have stated above.

Thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic