Hi ,
How do i run a servlet on a unix server,the import that do to the servel are suppose to have my company path like
com.company.java etc.
Please help as i am totally new to this.
Thanks
When i try to create a file and write it to the path given it generates an error and the file is not created ,is it the directory rights or the way i am doing it the reason for its failure ,as i have checked the rights on the directory and there is a write access on it.
$filename =...
Hi I am a totally new at the jsp stuff,I am using a unix envronment for writting the .jsp application ,Please can you tell me how i can go about this environment .
I have tomcat installed on my desktop ,do i need to put in the server address in it or it just needs to know where my java files...
I still can't get the script to run ,i have assign the chdir to another variable is that the reason it breaks i tried debug and it shows no error on it.
$newFile = chdir $ENV{'DOCUMENT_ROOT'} . "/home/kavi98/textDir/";
Thanks
Kavi98
I am running my script in the cgi-bin but i am storing files generated in the script three directory structure up to the location of the script i am giving absolute paths ,but when i run the script it generates an error.
I am using Cwd and then chdir to change to directory i want to store the...
Hi ,
I need to put in the contents of a file in an element,
How can i do it ,as i have tried to create a .sql file with a update in it ,but it gives an error.
the contents of the file are large.
Thanks
for the help.
The code that works
I want to thank you all for helping me make it work.
#!/opt/ZDperl/bin/perl -w
use CGI;
$query = new CGI|| die("$!");
print $query->header;
print $query->start_html(-title=>"UPLOAD THIS");
$fileID = $query->param('UPLOAD');
@pathName =...
goboating ,
I have tried to check for synatax mistakes i might have made ,but this error keeps comming.
used only once: possible typo at (eval 18) line 5.
Can't use an undefined value as a HASH reference at /zd/home/karora/cgi-bin/try2.cgi line 23.
@pathName = split(/\\/,$fileID);
it just keeps...
go boating ,
I have a question for you the snippet you have pasted above,
I am using it in the script and it keeps giving me an error of unintialised variable.
how do you set a variable to null or 0 before you use it.
Thanks
#!/opt/ZDperl/bin/perl -w
# CGI routines
use CGI_Lite;
use Fcntl qw(:flock);
my $cgi = new CGI_Lite;
$cgi->set_file_type ('UPLOAD');
my %in = $cgi->parse_form_data();
# get the file from the input stream
my $upload = $in{"UPLOAD"};
my $filename =...
I did try it on another machine maybe the parse_form data is not working as when i type on the command line i give the contents of the file it does not have to get it from the file.
it still transfers the filename,can i work some thing around it.
Please help.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.