JSP Question(Urgent Please)
Posted on 2004-03-29
How can I call a Perl function from my JSP code?
My JSP file is at the directory: "/export/usr/../code/";
The Perl file is in the same directory as the JSP file.
The Perl file name is get_id and it takes a parameter (of type String).
On the command prompt it works like this:
Now in My JSP (Java code), how can I write a system command?
I need to write something in my JSP code:
String myinput = "Jon";
ret = system /export/usr/../code/get_id myinput;
//ret should hold the string "W1234".
How can I write the JSP code above with correct syntax?