Solved

Calling java code from Perl CGI script

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
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…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
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…

705 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

19 Experts available now in Live!

Get 1:1 Help Now