Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Calling java code from Perl CGI script

Posted on 2003-11-12
3
Medium Priority
?
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

722 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