http://qs321.pair.com?node_id=263251

TexasTess has asked for the wisdom of the Perl Monks concerning the following question:

I am tasked with converting a large existing website written in Cold Fusion invoking a rather impressive Perl script library into a JSP/Perl website.

It wasn't easy, but I've been sucessful at getting just about all of the calls cold fusion made to the Perl scripts to work but there is one that really has me stumped and so I come to the Monastary, where all true knowledge is stored :-)

The problem: The cold fusion page called a perl script that does some nifty tricks and then cats a jpg image back to the cold fusion page. In cold fusion this is accomplished by simply making the href tag of the image be a call to the perl script. Something like:
<img src="http://server/cgi-bin/getThisImage.pl?image_name.jpg">

The owner of the webpages does not have permission to view this image, but the perl script handles that and then cats the image back to the page.

I cannot figure out how to make this work in a JSP call. Simply including it in the img tag does not work. With JSP I could invoke the perl script from a Runtime command but the script demands that the paramters be passed on the http protocol and does not accept parameters from the command line.

Perhaps I've come to the wrong forum for this, and if that is the case then please forgive the intrusion, but the monastary has never let me down and I am truely stumped with this! Any help or suggestions will be greatly appreciated!!

TexasTess
It's all about love; What you'd do to love, and what you'd love to do --Katherine Moody