javi_123 Posted June 18, 2009 Share Posted June 18, 2009 Hi all,I need to create a license page as a landing page. As soon as the user logs in, a license page should appear. If they agree with the terms and conditions, then the user should be directed to the home page and if user disagree, then the user should be logged out.Also, the license page should appear only once if the user has agreed with the terms and conditions.Do I need to create another flow or just a jsp page for this?Is there any example to create a flow.xml?Thanks in advanceRegardsJaviPost Edited by javi_123 at 06/18/2009 10:15 Link to comment Share on other sites More sharing options...
javi_123 Posted June 19, 2009 Author Share Posted June 19, 2009 please reply to this thread with a solution, this is really urgent. Many Thanks Javi Link to comment Share on other sites More sharing options...
javi_123 Posted June 26, 2009 Author Share Posted June 26, 2009 All you jasperserver guru's, may i request you to please reply to this thread??Many ThanksJavi Link to comment Share on other sites More sharing options...
skolluri Posted July 14, 2009 Share Posted July 14, 2009 hey Javi, This post might have the answer you are looking for. It tells you about how to change the landing page to be something else other than home. http://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=15545 Hope that helps! Good Luck!Sridevi Link to comment Share on other sites More sharing options...
javi_123 Posted July 15, 2009 Author Share Posted July 15, 2009 Hi Sridevi, Thanks a lot for you help. I have finally managed to get it working and i will post it here soon. In case if someone requires this kind of functionality. There was a lot of work around. It took me more than a day to get it working. Regards Javed Link to comment Share on other sites More sharing options...
colddata Posted May 17, 2011 Share Posted May 17, 2011 Hi Javed. Can you please post your solution? We need the same sort of thing. Thanks! Link to comment Share on other sites More sharing options...
javi_123 Posted May 18, 2011 Author Share Posted May 18, 2011 I'm not sure whether this is the best way to do it but this is what i have done to display the license page:1: Add a new role e.g. ROLE_LICENSE . Make sure this role is assigned to all users who need to view the license page.2: Create two report units, one report unit is for displaying the license agreement information and another report unit to accept the license agreement. I have attached the report units and this will give you a clear idea what i have done. 3: Make following changes in jasperserver-servlet-pro.xml <value>ROLE_LICENSE|redirect:/flow.html?_flowId=viewReportFlow&reportUnit=/public/reports/LicensePage&decorate=no</value> <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=homeFlow</value> <value>ROLE_USER|redirect:/flow.html?_flowId=homeFlow</value>This will show the license page once a user logs in.....4: Attached license_accepted.jrxml is calling stored procedure in the report sql. This will remove the ROLE_LICENSE from the user once they have accepted the terms and conditions. Next time when the user log in, the license page wont appear.Thats all i have done, hope this solves your problem.RegardsJavi 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