This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in doPut and doPost Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in doPut and doPost" Watch "Doubt in doPut and doPost" New topic

Doubt in doPut and doPost

raja ram
Ranch Hand

Joined: Mar 02, 2008
Posts: 169

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.

I agree. Here's the link:
subject: Doubt in doPut and doPost
Similar Threads
NX: about Property file, Policy file and Logger file
Configuring DataSource (MYSQL 4.X) in struts-config.xml (Struts 1.2.9) at JBOSS 4.x
HTTP POST maximum data size?
doPut() & doDelete() in servltes