简体   繁体   English

通过嵌入在应用程序JSP中的URL访问Jasper Server上的报告

[英]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.

相关问题 在 web 应用程序中集成来自 Jasper 报表服务器的 Jasper 报表 - Integrating Jasper Reports from Jasper Report Server in web application 通过网络访问碧玉报告 - Accessing jasper reports through the web 嵌入式Jetty服务器 - 没有JSP支持/,没有找到org.apache.jasper.servlet.JspServlet - Embedded Jetty Server - NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet 在vaadin应用程序中的客户端上查看jasper报告 - Viewing jasper reports on client side in vaadin application 是否可以将jasper报告嵌入到Python应用程序中? - Is it possible to embed jasper reports into a Python application? 如何在我的Web服务器URL中隐藏.jsp扩展名 - How to hide the .jsp extension in my web server urls 用于访问报告的直接URL - JasperServer - Direct URLs to access reports - JasperServer 如何在我的项目中使用jasper报告? 碧玉报告的优点和缺点是什么? - How to use jasper reports in my project? What are the Advantages and Disadvantages of jasper reports? jasper报告编译期间,JBOSS 7.1.1服务器挂起 - JBOSS 7.1.1 server hangs during the compilation of jasper reports Jasper Reports-将报告从Studio上传到服务器时发生异常? - Jasper Reports - Exception when uploading report from studio to server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM