hi justin Most of the time i send a redirect to the same url. This causes the browser to do a GET on the same resource and fetch the data. This has a downside that you get an extra request, but the good thing is that you don't repost your data if you press F5, since the GET request was the last one.
this is the line of code i put at the end of my PUT function: this.getResponse().redirectSeeOther(url); If you don't want to use a redirect, you can also send a representation back right away: this.getResponse().setEntity(this.getRepresentation(this.getPreferredVariant())); Richard On 9/18/07, Justin Makeig <[EMAIL PROTECTED]> wrote: > Dumb question: what's the appropriate response to a PUT request? When > I implement Resource#put and nothing goes wrong I get a 200 status, > but my Resource never visits its getRepresentation(Variant) method to > build a response payload. Is this the expected behavior or have I > wired something incorrectly? I can't tell what's supposed to happen > from the spec <http://www.w3.org/Protocols/rfc2616/rfc2616- > sec9.html#sec9.6>. > Any help would be much appreciated. > > Justin > -- Richard Bronkhorst Software Developer Noterik BV P.O. Box 15189 1001 MD Amsterdam The Netherlands T: +31 (0)20 5929 966 F: +31 (0)20 5929 969 www.noterik.com / www.noterik.nl / www.streamedit.com

