IT咨询服务商业智能

查看其它 1 个回答anyfeng的回答

anyfenganyfeng软件开发工程师某零售企业
回复 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")));
互联网服务 · 2015-08-14
浏览598

回答者

anyfeng
软件开发工程师某零售企业
擅长领域: 数据库存储服务器

anyfeng 最近回答过的问题

回答状态

  • 发布时间:2015-08-14
  • 关注会员:1 人
  • 回答浏览:598
  • X社区推广