-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
More stupid question...
1 - Why are you using perl when you have tomcat - can't you just use
a jsp?
2 - why can't you use an <img> tag? and have tomcat deliver the page...
3 - You are using tomcat aren't you?
Confused....
Andrew
On 11/07/2006, at 11:00 PM, Mead, Jennifer L - VSCM wrote:
Hello,
I am trying to create some cgi pages for my company. Or I should
say I
have created some and now just want to add a header graphic in the
main
page. Nothing fancy. However, I cannot get my image to display, no
matter how I embed the darned thing. I can't even get regular html to
display from our installation. Is it a configuration thing? Or am
I so
green I just don't get it? (feel free to flame). Here is the only
code
I can get running that displays the image:
#!/usr/local/bin/perl -w
#
#
use warnings;
use CGI qw/:standard/;
use CGI::Carp qw( fatalsToBrowser );
use constant BUFFER_SIZE => 4_096;
use constant IMAGE_DIRECTORY => "/images";
$|=1 ;
$q = new CGI;
print $q->header( -type => "image/gif" );
binmode STDOUT;
my $buff = "";
my $image = "icc-logo.gif";
local *IMAGE;
open IMAGE, IMAGE_DIRECTORY . "/$image" or die "cannot open file
$image:
$!";
while ( read( IMAGE, $buff, BUFFER_SIZE ) ) {
print $buff;
} close IMAGE;
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFEtBNWW126qUNSzvURAogbAJ9HHFxXIVUpt+xZFUKSMO08P6P2TgCeL1+a
DMEBngY+kTShxsFNyHjz7yM=
=EoBF
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]