This really has nothing to do with reflection.
You might want to read
UseAMeaningfulSubjectLine for tips on creating a subject that better describes your question.
I think I understand your problem now.
You want two things to happen when you click on a link.
The first is to download a PDF and the second is to refresh the page on which the link was clicked.
There is nothing in the
servlet API for doing this. The issue is in the HTTP protocol itself. With HTTP, there can only be one response per request (either the PDF or the new page).
One workaround is to have the link cause the page to be refreshed. Then
in the new page, use Javascript to make a new request to get the PDF.
This used to work well but now the popup blockers that ship with MSIE don't allow new requests to be made from the onload event of a page.
You might be able to settle for a solution that involves clicking the link to have the page redrawn and having a link on the new page that can be used to retrieve the PDF.
Since the solution to this problem will ultimately be in the client, not the server, I'm going to move the
thread to our HTML/Javascript forum. Someone there may have a better solution.
I'm going to change the subject to:
"Downloading PDF and re-drawing page" when it gets there.
[ December 07, 2007: Message edited by: Ben Souther ]