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

In reply to CF/PERL Conversion to JSP/PERL OH MY by TexasTess

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.