Re: form submission fails to redirect on success

2007-07-02 Thread Avi Flax
Jerome: That seems like a great solution. I took a look at Response.java and I really like that you also added a setLocationRef() method, but kept setRedirectRef() and getRedirectRef(), both for backwards compatibility and because sometimes those methods really do make sense. Very nice! Thanks,

RE: form submission fails to redirect on success

2007-06-30 Thread Jerome Louvel
I hope this sounds good to everyone, let me know otherwise. Best regards, Jerome > -Message d'origine- > De : Avi Flax [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 29 juin 2007 17:49 > À : discuss@restlet.tigris.org > Objet : Re: form submission fails to r

Re: form submission fails to redirect on success

2007-06-29 Thread Avi Flax
Thierry, Actually, I think setRedirectRef() (which in HTTP is expressed as a "Location" response header) *is* appropriate when the Response Status is SUCCESS_CREATED (HTTP: "201 Created"). It is used to indicate to the client the URI of the newly created Resource. That's the current state, and i

Re: form submission fails to redirect on success

2007-06-29 Thread Thierry Boileau
Hello Michael, after reading the spec, SUCCESS_CREATED shows that the operation succeeds and allows you also to provide a representation with some information about the new resource, including "a list of resource characteristics and location(s) from which the user or user agent can choose the one

form submission fails to redirect on success

2007-06-28 Thread Michael Vogel
Hello, I'm new to using restlets and have been experimenting with simple test pages to make sure i understand how to use it (and so that i can write some examples to help my coworkers learn it). I wrote a simple form submission test that works, except that the redirection after returning