回复 1# Coco111 BIEE URL登陆方法 1、 保留BIEE功能菜单
2、 不保留BIEE功能菜单
3、使用后台转码处理
java类
request.setAttribute("u_url",encode("/shared/XXX系统/_portal/仪表盘"));
public static String encode(String str) throws UnsupportedEncodingException{
String isoStr = new String(str.getBytes("UTF8"), "ISO-8859-1");
char[] chars = isoStr.toCharArray();
StringBuffer sb = new StringBuffer();
for (int i = 0; i < chars.length; i++) {
if ((chars[i] <= 'z' && chars[i] >= 'a')
|| (chars[i] <= 'Z' && chars[i] >= 'A') || chars[i] == '-'
|| chars[i] == '_' || chars[i] == '.' || chars[i] == '!'
|| chars[i] == '~' || chars[i] == '*' || chars[i] == '\''
|| chars[i] == '(' || chars[i] == ')' || chars[i] == ';'
|| chars[i] == '/' || chars[i] == '?' || chars[i] == ':'
|| chars[i] == '@' || chars[i] == '&' || chars[i] == '='
|| chars[i] == '+' || chars[i] == '$' || chars[i] == ','
|| chars[i] == '#') {
sb.append(chars[i]);
} else {
sb.append("%");
sb.append(Integer.toHexString(chars[i]));
}
}
return sb.toString();
}
response.sendRedirect(response.encodeRedirectUrl("http://xxx.xx.xx.xx:9704/analytics/saw.dll?Dashboard&PortalPath="+(String)request.getAttribute("u_url")+"&NQUser="+request.getParameter("username")+"&NQPassword="+(String)request.getAttribute("u_password")));