Discussions

Web tier: servlets, JSP, Web frameworks: JSP calls a standalone java program

  1. JSP calls a standalone java program (3 messages)

    How to i make a JSP page invoke a standalone java program.

    thanks in advance

    -P
  2. Do you mean you want it to execute a program with the program's main method?
  3. No not really...I just want to execute a batch file from a JSP page. Somebody pointed me to java.lang.Runtime.getRuntime().exec(s) ;

    But i dont know what exactly to put in the string s. Its a pretty tricky method.

    help is appreciated.

    thanx

    -P
  4. JSP calls a standalone java program[ Go to top ]

    try reading this informative article about using Runtime.exec():

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