| Author |
how to trigger doPut and doDelete methods ?
|
Raju Sri
Ranch Hand
Joined: Mar 10, 2004
Posts: 108
|
|
Hi , I just want to test the functionality of doPut and doDelete methods in Simple Hello Servlet.How can I test this ?. I know doPut() is used to place some resource(files) on the server and doDelete() is to delete some resource(files) on server. Is there any way to test these methods ? Regards Raju
|
SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3<br />SCDJWS 1.4
|
 |
Leena Diwan
Ranch Hand
Joined: Jun 18, 2001
Posts: 351
|
|
Did u try submitting a form with method='PUT' or method='DELETE'? Regards, Leena
|
[SCJP2, SCWCD1.3, SCBCD]
|
 |
Sivasundaram Umapathy
Ranch Hand
Joined: Aug 10, 2002
Posts: 360
|
|
The "POST" and "GET" are the only valid methods for an HTML form. So you cannot test the other HTTP methods with HTML forms. If you have plenty of time, you could try implementing a HTTP client using socket connections. But if you need it faster, you can try Apache HttpClient to simulate "PUT" and "DELETE" Check the PUT example and DELETE example pages for further instructions HTH
|
Siva
Co-Author - SCMAD Exam Guide - ISBN:9780070077881
Author - Java certification success, Part 4: SCEA
|
 |
Raju Sri
Ranch Hand
Joined: Mar 10, 2004
Posts: 108
|
|
Hi Sivasundaram , Thank you.
|
 |
Anupama Ponnapalli
Ranch Hand
Joined: Jun 12, 2006
Posts: 66
|
|
Hi Siva, This is exactly what I was looking for! Thanks for your valuable post. - Anu [ September 07, 2006: Message edited by: Anupama Ponnapalli ]
|
 |
 |
|
|
subject: how to trigger doPut and doDelete methods ?
|
|
|