mc.bechara Posted September 9, 2014 Share Posted September 9, 2014 I have jaspersoft version 5.6 and I need to make my dashboard as the homepage when I log in. I've modified the home1.jsp as I've found in the wiki but it just doesn't work. As if nothing is affected.I've created a role ROLE_DASHBOARDand in my home1.jsp here's what I've written: <authz:authorize ifAllGranted="ROLE_DEMO"> <%-- We have special home page for demo user only on PostgreSQL db. For other DB's it have same home page as other users. --%> <c:if test="${demoHomeResourceExists}"> <c:set var="homePageRequested">homeForDemo.jsp</c:set> </c:if> <c:if test="${not demoHomeResourceExists}"> <c:set var="homePageRequested">homeForNonDemo.jsp</c:set> </c:if></authz:authorize><authz:authorize ifAllGranted="ROLE_DASHBOARD"> <c:set var="homePageRequested">homeForDashboard.jsp</c:set></authz:authorize><authz:authorize ifNotGranted="ROLE_DEMO"> <c:set var="homePageRequested">homeForNonDemo.jsp</c:set></authz:authorize> <jsp:include page="${homePageRequested}"/> Now in homeforDashboard.jsp here's the iframe: <iframe id="outerFrame" class="outerDashboardFrame" name="Dashboard" allowtransparency="true" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" height="100%" width="100%" scrolling="no" src="${pageContext.request.contextPath}/flow.html?_flowId=dashboardRuntimeFlow&dashboardResource=${demoHomeResource}&viewAsDashboardFrame=true&decorate=no&hidden_isJasperAnalysis=<%=licenseManager.isAnalysisFeatureSupported()?"true":"false"%>"> </iframe> What else needs to be changed? Link to comment Share on other sites More sharing options...
hozawa Posted September 9, 2014 Share Posted September 9, 2014 It's not recommended to put your dashboard on home pages because dashboards are more resource intensive than simple jsp pages. Home pages are opened when an user logs in and employees usually login at the start of the day - commonly at the same time. This slows down the server.A simple way to replace home page with jsp for all users (unfortunately steps are in Japanese)http://community.jaspersoft.com/wiki/zi-fen-nohomupeziwoshi-itai Link to comment Share on other sites More sharing options...
pawelkosi Posted November 14, 2014 Share Posted November 14, 2014 Hi, I am in need of simillar thing. I need to display a dashboard for certain level of users.Do anyone knows a way to do it that works and is in English? Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now