I need to call a web service(REST) on click of a button, in that service after processing the request it needs to redirect to other portal page by passing some values.
on click of button im calling an ActionList which has a call to service
the code I'm using for redirection :
URI location = null;
String url = "http://sample.ibm.com:10039/wps/myportal/Home/rootpage/child/child2/forms ";(all pages has friendly names and url is proper )
UriBuilder bulder = UriBuilder.fromPath(url);
location = bulder.build();
redirection works fine when i directly hit the url from browser but redirection is not happening on click of button,
am i missing anything, please advice.