From a
JSP page, I am trying to run a shell script.
From the command line, I call the script like:
First Code Example
It processes just fine in this scenario.
Within the .jsp page, I originally tried
2nd Code Example
this scenario did not work. The variable that is argument1 does not get populated and the program that is being called by the shell script gives me Null-Value error. (this does not happen in the first coding example.
A co-worker told me this would be the solution:
3rd Code Example
However, this gives me the same results as in the 2nd code example.
Any suggestions on what I'm doing wrong here? The shell-script argument is not getting picked up by the Runtime Call, but I don't know how to make sure it does get picked up.
------------
(If relevant, I'm doing this on Solaris 10 using
Tomcat).
-----------
thank you for your help and insights.