How to change url of the page on redirect in ADF
981554Feb 26 2013 — edited Feb 26 2013Hi ADF Experts,
I have a requirement like on exit command link ,I need to redirect my page to google for which I am using below code,
ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
String url ="www.google.com";
try {
response.sendRedirect(url);
} catch (Exception ex) {
ex.printStackTrace();
}
but after execution of the function the url in address bar of browser is not changing to "www.google.com"
Please help