Here you can find the source of TruncateUrlPage(String strURL)
public static String TruncateUrlPage(String strURL)
//package com.java2s; public class Main { public static String TruncateUrlPage(String strURL) { String strAllParam = null; String[] arrSplit = null; strURL = strURL.trim().toLowerCase(); arrSplit = strURL.split("[?]"); if (strURL.length() > 1) { if (arrSplit.length > 1) { if (arrSplit[1] != null) { strAllParam = arrSplit[1]; }/*www . j av a 2 s. c om*/ } } return strAllParam; } }