File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Redirect with CGI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Redirect with CGI" Watch "Redirect with CGI" New topic
Author

Redirect with CGI

victor kamat
Ranch Hand

Joined: Jan 10, 2007
Posts: 247
I am using the CGI program to redirect but it doesn't work.
Can somebody help me. Thanks

#!/usr/local/bin/perl -T

use strict;
use CGI ':standard';

my $cgi = new CGI;

print header;
print start_html('Hello World');
$cgi.redirect(" http://www.yahoo.com");
print end_html();

exit;
 
wood burning stoves
 
subject: Redirect with CGI
 
Similar Threads
Applications of Portal/portlet in the industry
sendRedirect problem!
sendRedirect problem!help me
Sockets vs URL Based classes
sendRedirect vs getRequestDispatcher