jsloubet Posted May 25, 2009 Share Posted May 25, 2009 Hi,I would like a given user to be directed on the rapports list page when he logs in.I created a homeForMyRole.jsp file as below but I don't have the wanted behaviour.If I suppress the "viewAsDashboardFrame=true" part, I have the menu bar and logo twice and If i let it, it is worse.What do I do wrong ?How to display a page, that one normally goes to through the menu, when one logs in ?Thank you very much !Julien Code:<% request.setAttribute("homePage","true"); %> <%request.setAttribute("homePage","true"); %><table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top"> <table valign="top" align="center" cellpadding="0" cellspacing="0" border="0" width="920" height="450"> <tr> <td valign="top" align="center" width="100%"><%@ page import="com.jaspersoft.ji.license.LicenseManager" %> <iframe id="outerFrame" 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=listReportsFlow&curlnk=2&viewAsDashboardFrame=true"> </iframe> </td> </tr> </table> </td> </tr></table> Link to comment Share on other sites More sharing options...
jsloubet Posted May 25, 2009 Author Share Posted May 25, 2009 I forgot : I'm using JasperServer 3.5 Link to comment Share on other sites More sharing options...
jsloubet Posted May 26, 2009 Author Share Posted May 26, 2009 I tried the solution given here :http://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=15545but it doesn't work.Does someone meet the same problem ?Thanks, Julien Link to comment Share on other sites More sharing options...
vishal29bhp Posted May 26, 2009 Share Posted May 26, 2009 I tried this Solution its working . you are trying to make custom page that contains the logic to navigate reports through jsp right. Could you succeed in making frame of reports. Vishal Link to comment Share on other sites More sharing options...
jsloubet Posted May 26, 2009 Author Share Posted May 26, 2009 Thank you for your response.What do you mean by "making frame of reports" ? At this time when my user "jscro", with ROLE_USER as role, logs in, he lands here : http://localhost:8091/jasperserver-pro/flow.html?_flowId=homeFlow I would like he lands here : http://localhost:8091/jasperserver-pro/flow.html?_flowId=listReportsFlowSo I modified jasperservlet-servlet.xml as below.Do you see the problem ?Thank you in advance,Julien Code: <property name="homePageByRole"> <list> <!-- <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=repositoryExplorerFlow</value> --> <!-- <value>ROLE_USER|redirect:/flow.html?_flowId=repositoryExplorerFlow</value> --> <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=listReportsFlow</value> <value>ROLE_USER|redirect:/flow.html?_flowId=listReportsFlow</value> <value>RAPPORTS_VIEWER|redirect:/flow.html?_flowId=listReportsFlow</value> </list> </property> Link to comment Share on other sites More sharing options...
lucianc Posted May 27, 2009 Share Posted May 27, 2009 See this thread, it might help.Regards,Lucian Link to comment Share on other sites More sharing options...
jsloubet Posted May 28, 2009 Author Share Posted May 28, 2009 Hi, I already tried this and it didn't work for me.It's seems my modifications in the jasperserver-servlet.xml has no effect.See below my modifications. As a test, I wanted that all my users land on the same home page : listReportsFlowBut no result, each user conserve his own home page ...Could please someone explain to me the hidden process of login ? What are the involved files names and in which order ?Thank you in advance,Regards,Julien Code: <property name="homePageByRole"> <list> <!-- <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=repositoryExplorerFlow</value> --> <!-- <value>ROLE_USER|redirect:/flow.html?_flowId=repositoryExplorerFlow</value> --> <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=listReportsFlow</value> <value>ROLE_USER|redirect:/flow.html?_flowId=listReportsFlow</value> <value>RAPPORTS_VIEWER|redirect:/flow.html?_flowId=listReportsFlow</value> </list> </property> <property name="defaultHomePage"> <value>redirect:/home.html</value> </property> Link to comment Share on other sites More sharing options...
lucianc Posted May 28, 2009 Share Posted May 28, 2009 What happens when users click the Home menu item? Are they sent to listReportsFlow? Link to comment Share on other sites More sharing options...
jsloubet Posted May 28, 2009 Author Share Posted May 28, 2009 When users click the Home menu item or when they log in, they land here :http://localhost:8091/jasperserver-pro/flow.html?_flowId=homeFlowI guess this page differs by user according to the files located here (homeForXXX.jsp) :C:\Program Files\jasperserver-pro-3.5\apache-tomcat\webapps\jasperserver-pro\WEB-INF\jsp\homeJulien Link to comment Share on other sites More sharing options...
lucianc Posted May 28, 2009 Share Posted May 28, 2009 If you have JS PRO, you'd need to edit WEB-INF/jasperserver-pro.xml as it overrides the homePageByRole bean.Regards,Lucian Link to comment Share on other sites More sharing options...
jsloubet Posted May 28, 2009 Author Share Posted May 28, 2009 Thanks, it works !!Then, according to my jasperserver-servlet-pro.xml, for a user belongs to the ROLE_USER, it lands to the listReportsFlow page.But my "jscro" user belonging to my role "ROLE_REPORTS_VIEWER" has a denied access message when he logs in.I modify applicationContext-security.xml to give him permissions. Is there other file to modify ?Julien Link to comment Share on other sites More sharing options...
lucianc Posted May 29, 2009 Share Posted May 29, 2009 Is ROLE_USER assigned to jscro? If not, my suggestion is to assign ROLE_USER to all users, and move RAPPORTS_VIEWER upper in the homePageByRole list so that it takes precedence over ROLE_USER.Regards,Lucian 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