Invoking an application (exe), sending commands, CGI

Hello:

I am looking for a JSP code tutorial or example where they show how to invoke a program and send any commands or parameters to that program.

It is something similar to what this CGI in Perl does:

open (IDL,"| /usr/local/bin/idl");

print IDL"idl_libpath = '/users/ccc/IDL-Library-WL/'\n";

print IDL".compile /users/ccc/IDL-Library-WL/idl_addlib.pro\n";

print IDL"IDL_AddLib, DIRECTORY=idl_libpath + 'IDL_Lib/'\n";

print IDL"i = ",$values{"i"},"\n";

print IDL"m = ",$values{"m"},"\n";

print IDL"figfilen = '/dev/stdout' & path = '' & pp = 100\n";

print IDL"Plot_NJI,m=m,i=i,p=p,figfilen=figfilen,pp=pp\n";

print IDL"exit\n";

...Above invokes the IDL application and send commands to it..

-

Ok, on this page I found an info regarding to invoking a program --> http://www.glenmccl.com/tip_017.htm

Any help is extremely appreciated

[1384 byte] By [tofuwithcoffeea] at [2007-11-27 10:18:49]
# 1

Another article on using Runtime.exec()

http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Note that the program will get executed on the Server - not the client, because thats where the JSP/Java is running.

evnafetsa at 2007-7-28 16:53:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Ok, I realized that I was not getting much results from google..

Now I get more:

http://www.google.com/search?sourceid=navclient&ie=UTF-8&rlz=1T4GGIH_enUS218PR219&q=java+cgi

tofuwithcoffeea at 2007-7-28 16:53:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...