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.



Regards



Pavel



-----Original Message-----
From: André Warnier [mailto:a...@ice-sa.com]
Sent: vendredi 27 mars 2015 21:37
To: Tomcat Users List
Subject: Re: JSP page exploration scenario



Pavel Yermolenko wrote:

> Hello,

>

>

>

> For acceleration to getting articles (.pdf files) from some portal I'm

> trying to realize following scenario in Java application:

>

>

>

> 1.      Initial page is read into a string object STRING1

>

> 2.      STRING1 is analyzed and array ARR1 of links, associated to articles,

> is built

>

> 3.      Unfortunately these links (from ARR1) aren't links to simple pages,

> but links to "Java Server Page" (JSP) pages, their content can't be

> accessed using dedicated classes (e.g. HttpWebRequest, WebClient)

>

> 4.      So, the idea is to use Tomcat for running JSP links locally and then

> extract in some way the "real" links to the .pdf files, . or access

> directly to .pdf content that is captured by Tomcat

>

>

>

> Any comments about realization of such scenario are welcome.



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 ?



---------------------------------------------------------------------

To unsubscribe, e-mail:  <mailto:users-unsubscr...@tomcat.apache.org> 
users-unsubscr...@tomcat.apache.org

For additional commands, e-mail:  <mailto:users-h...@tomcat.apache.org> 
users-h...@tomcat.apache.org



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com

Reply via email to