Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Calling java code from Perl CGI script

Posted on 2003-11-12
3
Medium Priority
?
296 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
1 Comment
 
LVL 48

Accepted Solution

by:
Tintin earned 500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

877 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