Hello all,
Thanks for the help earlier on customizing the Response, works fantastic.!
I have another problem wr to the delete method.
It works fine from wiztools restclient however when I try to perform a
delete through the browser,
I get a 405 *The specified HTTP method is not allowed for the requested
resource ().
*Perhaps I am misunderstanding the capabilities of the delete method?
Here is my code:
* @DELETE
@Path("/delete/{arg1}")
public Response delete(@PathParam("id")
String id) {
MultivaluedMap<String, String> params =
context.getTemplateParameters();
String s = params.getFirst("arg1");
return fpkSent.deleteFPKSent(s);//returns a Response Object
}
* Now I access the following url to perform the delete:
http://localhost(tomcat6.1):8084/fpk/delete/recordtodelete
One other problem I am having is accessing the PathParam...as you can see I
am using the TemplateParameters to retrieve the args.
In other words, if I do a System.out.println("PathParam id="+id) It returns
null.
Both of these problems are minor.
Thanks again!
**
*
*