I have an application that uses jasper-reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7 , tomcat 8 and on the front end we use angularjs . The requests rest are made via ajax .
The application is all set to receive objects json in return of the requisitions, since the requests via angularjs are all made via Ajax. In certain functionality of the application we have a "common" request using window.location = url
, because we need to return a streaming that is nothing more than a byte array to generate a PDF file.
With this, when there is an error in the back end the answer goes to a blank screen with an object