GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Servlets
Go To First  |  Previous Question  |  Next Question 
 Servlets  |  Question 114 of 170    Print  
What is the purpose of doPUT() and doDELETE() method?

  
Total Answers and Comments: 2 Last Update: January 12, 2007     Asked by: mail_2_mahendran 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 22, 2006 06:07:47   
santh kumar        

RE: What is the purpose of doPUT() and doDELETE() meth...

These 2 methods are called by the server.

doPut():- a servlet handles PUT request made by the client to put a file web page or a document in the server and is similar to sending a file by FTP.

doDelete():- a servlet handles DELETE request made by the client to delete a file web page or a document from the server.

if these requests are incorrectly formatted They returns an HTTP Bad Request message.

with regards

santh


 
Is this answer useful? Yes | No
January 12, 2007 09:15:07   
sudhakarchowdary Member Since: January 2007   Contribution: 15    

RE: What is the purpose of doPUT() and doDELETE() meth...

doPUT: The PUT method is a complement of a GET request and PUT stores the entity body at the location specified by the URI. It is similar to the PUT function in FTP.

doDELETE: The DELETE method is used to delete a document from the server. The document to be deleted is indicated in the URI section of the request.


 
Is this answer useful? Yes | No

 Related Questions

GenericServlet is for servlets that might not use HTTP, like for instance FTP service.As of only Http is implemented completely in HttpServlet. The GenericServlet has a service() method that gets called 
Latest Answer : HttpServlet is a specific case/implementation of GenericServlet.Thanks,Vinay ...

A GET request is a request to get a resource from the server. Choosing GET as the "method" will append all of the data to the URL and it will show up in the URL bar of your browser. The amount 
Latest Answer : 1) Get is Faster than Post..2) Get Is Idempotent i.e same work can be done again and again without harming database...3) Amount of data send is limited to few characters only and are visible in address bar, so sensitive data cannot be sent via GET. ...

Both are interfaces. The servlet engine implements the ServletConfig interface in order to pass configuration information to a servlet. The server passes an object that implements the ServletConfig interface 
Latest Answer : ServletContext and ServletConfig are the interfaces provided by java class in servlet API.The vendors of web containers(WC) provides the classes implementing these interfaces.It is the responsiblity of web container(WC) to create ServletContext and ServletConfig ...

Yes. Because your JSP is just a servlet method, you can just put (whereever necessary) a < % return; % > 
Latest Answer : I can see, the jsp:forward line did dissapear after your editing.....It should read: If you want a solution similar to the Coldfusion , then do the following: Create a page called exit.jsp etc. with only this content: ...

setContentType() method must be set before transmitting the actual document. 
Latest Answer : response.setContentType("text/hthl"); line before PrintWriter line. ...

An HTTP Servlet handles client requests through its service method. The service method supports standard HTTP client requests by dispatching each request to a method designed to handle that request. 
Latest Answer : hi,by using the http methods like get,post etc .to maintain the conversional state of the client by using session tracking,cookie ,hidden techniques,the servlet wii be handle the requests.bye ...

destroy() is a servlet life-cycle method called by servlet container to kill the instance of the servlet. The answer to your question is "Yes". You can call destroy() from within the service(). 
Latest Answer : Yes,we can call destroy method,but it is not recommended to call this method from our code since init(),service(),destroy()'s r servlet lifecycle methods.And in destroy()there will be aconfig variable which will be set to null if we override this ...

Latest Answer : The RequestDispatcher.include(req, resp) is used to add a jsp to the servlet. ...
Read Answers (1) | Asked by : sushma

Latest Answer : Yes. We can override.The init(ServletConfig) method is defined in the Servlet interface. It has been implemented by the GenericServlet class. The implementation of this init method in the GenericServlet just stores the ServletConfig object in some ...

How to get value from init() method in servlet? orhow to get initializaion time values from init() in servlet?
plz ans !!!!!!!!!!!!!!!!!!! 
Read Answers (12) | Asked by : raj


 Sponsored Links

 
Related Articles

What is Common Data Modeling Method

Common Data Modeling is one of the core considerations when setting up a business data warehouse. Any serious company wanting to have a data warehouse will have to be first serious about data models. Building a data model takes time and it is not unusual for companies to spend two to five years just
 

The Interview Snafu

How to turn someone else&rsquo;s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won&rsquo;t get over the line without a polished, prof
 

JavaScript Window Object Open Method Part 2

JavaScript Window Object Open Method Part 2 In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method scrollbars status titlebar toolbar top width innerHeight innerWidth outerHeight outerWidth and hotkeys mosgoogle center scrollbars S
 

JavaScript Window Object Open Method

JavaScript Window Object Open Method In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method channelmode directories dependent fullscreen screenX screenY height left location menubar resizable alwaysLowered alwaysRaised mosgoogle ce
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

HR Interview - Telephone Interview Etiquette

Telephone Interview Etiquette When you conduct a telephone interview for a job it is important to show the proper etiquette Not only is it important it is critical is you wish to be hired by the company There are a number of things you will want to do and other things should never be done mosgoogle
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape