We are trying to develop an application which has a link in a jsp page. On clicking that link, control goes to a servlet. In service method of servlet, we are trying to open a jasper report in pdf format. We have the .jasper compiled file. We want to achieve the following things :
1. The pdf is opening in the same window. But we want that pdf should open in a new window. Actually the pdf should behave as a web page.
2. The pdf should have a checkbox, which the user should check when he has read the pdf. when he checks the checkbox, the control should come back to the jsp page from which it was opened.
3. There should be a check to determine whether user checked the checkbox or not. If he did, a new link should become visible in the jsp otherwise not.
The user always an option to close the pdf or save it, but if the checkbox is not clicked, the new link should not be visible. In simple words, the web journey of the user will end.
Is there any solution for this ? Its extremely urgent. Any help would be highly appreciated.
subject: Jasper pdf in a new window and checkbox option in the pdf