I couldn't find a method to get the base url of ServerServlet. So it
is hardcoded. Any clue how to retrieve it from the runtime
environment? Thanks.

 String baseUrl = "/context-root/restlet-root";
 router.attach("res1", new Redirector(
   getContext(), baseUrl + "res2",
   Redirector.MODE_CLIENT_SEE_OTHER));


-- 
View this message in context: 
http://n2.nabble.com/how-to-redirect-to-another-resource--tp1689188p1689188.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

Reply via email to