<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>cogons</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form method="post" action="http://localhost:9300/p2pd/servlet/dispatch"
Target="_blank">
<p>测试Cognos 8.3 + web前端集成参数传递</p>
<p>Cognos URL http://localhost:9300/p2pd/servlet/dispatch</p>
<p>Report Name jsp</p>
<p>Search Path /content/package[@name='test']/report[@name='jsp']</p>
<p>传递的参数:p_name (注意这里必须用 "p_" 做前缀表示是参数,否则无法生效)</p>
<input type="hidden" name="b_action" value="xts.run" />
<input type="hidden" name="m" value="portal/report-viewer.xts" />
<input type="hidden" name="method" value="execute" />
<input type="hidden" name="prompt" value="false" />
<input type="hidden" name="run.prompt" value="false" />
<input type="hidden" name="m_obj"
value="/content/package[@name='test']/report[@name='jsp']" />
<input type="hidden" name="p_aa" value="Adam">
<input type="submit"
value="Submit" />
</form>
<br>
</body>
</html>
[b]Cognos门户 可以查看报表的属性,里面有查看搜索路径、ID和URL。如果报表不需要参数,jsp可以直接访问URL[/b]