I am using perl CGI because that is what the company wants.  I haven't
used jsp ever, but I am researching it to teach myself.  Then I could
introduce it and convince my boss to let me develop in it.

I have used the <img> page over and over to no avail.  That is why I was
concerned that it was a browser setting or tomcat specific.  It should
work.

Yes we have tomcat installed.  I should have realized that most folks on
this list are jsp programmers and NOT perl CGI.  Oh bother.

Thanks for the reply,
Jennifer 

-----Original Message-----
From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 2:09 PM
To: Tomcat Users List
Subject: Re: Simple question, but can't figure out answer

-----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]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to