更改openDocument默认的URL路径

来源:互联网 发布:移动网络怎么转换器 编辑:程序博客网 时间:2024/06/05 03:15

bo3 OpenDocument 默认的URL路径是/OpenDocument/opendoc/openDocument.jsp

bo4 OpenDocument 默认的URL路径是/BOE/OpenDocument/opendoc/openDocument.jsp

现在从3牵到4,将报表的URL地址重写一遍不太可能,官方文档内提到的就下面一段话

The default URL to the OpenDocument web application bundle has changed in SAP BusinessObjects
Business Intelligence platform 4.0. New absolute OpenDocument links need to use the new default
URL:
http://<servername>:<port>/BOE/OpenDocument/opendoc/openDocument.jsp?<parameter1>&<parameter2>&...&<parameterN>
If you are migrating reports with existing links from an XI 3.x release platform, resolve the issue by
setting up the following redirect in your web server:
• Redirect:../OpenDocument/opendoc/openDocument.jsp
• To:../BOE/OpenDocument/opendoc/openDocument.jsp

算是给了个方法,具体怎样实现就靠自己了

综合网上资料,实现如下:

环境:TOMCAT服务器

新建文件Tomcat6\webapps\OpenDocument\opendocopenDocument.jsp

编辑内容

<% 
String redirectURL = "/BOE/OpenDocument/opendoc/openDocument.jsp?" + request.getQueryString(); 
response.sendRedirect(redirectURL); 
%>

OK

如果要跳转到不同TOMCAT的应用中就再加上server:port


原创粉丝点击