Pavel Yermolenko wrote:
Hello André,
Why do you make it so complicated ?
Why do you not just request the link to the JSP page ? does that not return the
PDF file that you want ?
JSP page doesn't include link to .pdf.
When I "execute" such JSP page in browser (e.g. Chrome) and then see its
source, the link on .pdf does present.
What you propose works perfectly with "ordinary" pages, not with JSP.
Are you not confusing "Java applets" with "JSP pages" here ? The original meaning of JSP
is "Java Server Pages", with the word "Server" meaning that whatever execution there is,
is on the server side.
In other words, by the time the page gets to your browser, it should not contain any "JSP
code" anymore. The JSP code will have been run on the server side, and been transformed
into HTML or whatever, before it is even sent to the browser.
On the other hand, if a page contains Java Applets, these Applets will be executed on the
client/browser side, by a local JVM.
Following up on that same line, and with a lot of imagination thrown in, if your purpose
is to simulate what a local Java Applet does, to download a PDF from the server and open
it, then what you need is a protocol analyser, that shows what goes on between the local
Java Applet and the server in question, and /that/ is what you need to simulate.
Not that I encourage you along these lines. Presumably, if someone went through the
trouble of building a website in that way, they probably do not want people to just
download their documents without going through the applet.
Ever heard of "copyright" for documents ? If not, I kindly suggest that you seriously
investigate the matter, before you even make further trials along those lines. In some
countries, even /attempting/ to do that kind of thing can land you into very serious trouble.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org