Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found