Reputation: 79
I am a begginer in report generation using jasper report server. I want to show reports deployed in jasper server in my web application. I have read this article : 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 :
<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.
Now when I run my application through tomcat, In browser it keeps reloading and nothing appears.
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.
I don't understand what i am doing wrong. :'(
Please Help.
Upvotes: 0
Views: 4195
Reputation: 2220
Try this maybe.
<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}"/>
Upvotes: 1