Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to change url of the page on redirect in ADF

981554Feb 26 2013 — edited Feb 26 2013
Hi 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
This post has been answered by Frank Nimphius-Oracle on Feb 26 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2013
Added on Feb 26 2013
5 comments
3,298 views