[英]Access the reports on Jasper Server through URLs embedded in JSP of my application
I am a begginer in report generation using jasper report server. 我是使用jasper报表服务器生成报表的初学者。 I want to show reports deployed in jasper server in my web application. 我想在Web应用程序中显示部署在jasper服务器中的报告。 I have read this article : http://community.jaspersoft.com/wiki/embedding-using-http-api 我已经阅读了这篇文章: http : //community.jaspersoft.com/wiki/embedding-using-http-api
I am doing this for self learning only so there is no issue of security. 我这样做只是为了自学,所以没有安全性问题。
So far i have done : I made a web application and in my JSP i am using the following to embedding reports in JSP : 到目前为止,我已经完成了:我制作了一个Web应用程序,在JSP中,我使用以下内容将报告嵌入JSP中:
<c:import url="http://localhost:8080/jasperserver/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Freports%2FGraphD&reportUnit=%2Freports%2FGraphD%2FMainReport1&j_username=jasperadmin&j_password=jasperadmin" />
I have downloaded a theme and uploaded to jasper server and made it active, so as to remove header and jaspersoft logo etc. 我已经下载了一个主题并上传到jasper服务器并使其激活,以便删除标题和jaspersoft徽标等。
Now when I run my application through tomcat, In browser it keeps reloading and nothing appears. 现在,当我通过tomcat运行我的应用程序时,在浏览器中它会不断重新加载,并且什么也没有出现。
Note : If i dont pass username and password as parameters in request then jasper server login page appears but when i try to login , error is displayed : j_spring_security_check, The requested resource is not available. 注意:如果我没有在请求中传递用户名和密码作为参数,则会显示jasper服务器登录页面,但是当我尝试登录时,会显示错误:j_spring_security_check,所请求的资源不可用。
I don't understand what i am doing wrong. 我不明白我在做什么错。 :'( :'(
Please Help. 请帮忙。
试试这个吧。
<c:import var="data" url="http://localhost:8080/jasperserver/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Freports%2FGraphD&reportUnit=%2Freports%2FGraphD%2FMainReport1&j_username=jasperadmin&j_password=jasperadmin"/>
<c:out value="${data}"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.