tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mead, Jennifer L - VSCM" <Mead.Jenni...@vectorscm.com>
Subject Simple question, but can't figure out answer
Date Tue, 11 Jul 2006 21:00:48 GMT

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;


All good, it looks fine.  However I cannot use this because then I
cannot display anything else, or at least I cannot figure out how to.
Any help is appreciated.  I have been trying all kinds of things, so
many I cannot recall half of the things I have tried.  Truly frustrated
from lack of knowledge.

Regards,
Jen

Jennifer L Mead
ICC Operations Sr Sys Engineer
Con-way Enterprise Services
503.450.8578 		desk
503.550.6589		cell
mead.jennifer@vectorscm.com



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message