Solved

Calling java code from Perl CGI script

Posted on 2003-11-12
3
280 Views
Last Modified: 2013-12-25
Hello,
I have a form generated in Perl CGI....now as the user enters the values in the form I need to submit these values to a Java program to process this data. I am writing the result to a file in the java code and then trying to access this result in my Perl CGI code. So, the picture is something like  this:

Perl-CGI form---------->Java Code
      ^                                |
       |                                |
       |---------------------- Result stored in File

Can someone please let me know how this is possible. I tried but the CGI is not calling the Java code at all. I need this to be done very urgently.

Thanks a lot in advance
Hari Krishna
0
Comment
Question by:rvharikrishna
3 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 125 total points
ID: 9734216
Assuming you are talking about server side Java.   If so, it's a simple matter of using a system call, eg:

system("java prog arg1 arg2") == 0 or die "Can not run java prog $!\n";
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now