Jump to content
We've recently updated our Privacy Statement, available here ×

How to create a License page


javi_123

Recommended Posts

 

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 advance
Regards
Javi


Post Edited by javi_123 at 06/18/2009 10:15
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

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

  • 1 year later...

 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.

Regards

Javi

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...