Hi list,

In our webapp we use spring+restlet (2.0-M5). Spring is setup to provide 
role-based authentication for URLs. In some (restlet) resources, we have custom 
code for more fine-grained authorization. There's a scenario where Spring 
grants access but our custom code requires the user to login to access the 
resource.

What we'd like to do is to have the webapp redirect back to the resource page 
after successful login. However, the webapp always redirects to the spring's 
default target URL. I'd like to know whether there's a way to instruct restlet 
to redirect to a particular URL.

This is how we redirect the user to the login page in the resource:
                
getResponse().redirectTemporary(getRequest().getRootRef().toString() + 
"/login");

Thanks!
Yuan-Fang

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2448644

Reply via email to