1. How can i generate PUT request from client (say java program)?
Paul and I mentioned two ways of doing this. What else are you looking for?
2. Further, how and what to handle on servet's doPut() method so as to create resource?
3. As known, PUT request is to create resource on server, do i have to provide resource name(to be created) as parameter in the request and how?
Conceptually, a PUT is somewhat similar to a POST, with the body of the request containing the resource. So you'd use the Request.getInputStream method to get at the data of the resource.
The name of the resource is the URI (or URL in this case), so no extra name is supplied.
You should read section 9.6 of the
HTTP specification (and the other sections it points to) for further details regarding the implementation.