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 SUCCESS_CREATED doesn't happen. I am under
the impression that setting getResponse().setRedirectRef(<some URL>);
sets the location header and redirects the browser to whatever URL is
specified.
If i send the state REDIRECTION_SEE_OTHER, it redirects correctly.
From the HTTP spec, it appears that using REDIRECTION_SEE_OTHER to
redirect the client to a view of
the created item after a post is acceptable, so I'm going with that
for now, but I thought SUCCESS_CREATED was supposed to do that also.
Am I incorrect in expecting it to redirect on SUCCESS_CREATED?
thanks for your time,
Michael