Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
wsrp url extract.....
String url = p2.encodeURL(p1.getContextPath()+"/AppContext/img/display.jsp");
String[] urltemp = url.split("&");
for(int i=0;i<urltemp.length;i++){
String uTemp = urltemp[i];
if(uTemp.trim().substring(0, 8).equals("wsrp-url")){
url = uTemp.replaceAll("wsrp-url=", "");
url = url.replaceAll("%3A", ":");
url = url.replaceAll("%2F", "/");
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.