Solved

Calling java code from Perl CGI script

Posted on 2003-11-12
3
284 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

838 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