Thanks Anthony his help was important! But my problem still remains: I have a jsp named, for example, jspex1.jsp. The jspex1 sends a request to a servlet. The servlet loads a pdf file and sends it to another jsp, named, for example, jspex2.jsp.
I have a button in JSP (I'm using frameset with jsp). The button when pressed, directs the request (Ajax) to a servlet. The servlet receives the request, loads the PDF and forwards the pdf to another jsp. How do this?