Does your JSP page work? If you add some HTML code to it, do you see it on the screen? Does calling the class from JSP page work? If you add some println statements in your class, do they get printed out (most likely to your web container's log file). If that works, maybe there are some security restrictions on JSP (kind of like on Applets when they're not allowed to do everything what a regular Java application can)?
shah isha
Greenhorn
Joined: May 01, 2007
Posts: 18
posted
0
@ John Meyers
Hi,
I am developing administration part of network management.
In which admin can view process running on some computer and can kill it by clicking on button. This coding is done in jsp.
Regards, Isha
shah isha
Greenhorn
Joined: May 01, 2007
Posts: 18
posted
0
@ Andris Jekabsons
Hi,
Ya my code is running perfectly fine. In fact i have another function which is not having any linux commands in the same class where i have kept function to kill process.
That function is working from jsp but not the one which is killing process.
If it does not work in a JSP, call a servlet that will kill the process for you and then redirect you to a JSP page that dynamically lists down active processes. Do you see any error stacks when you use the code in a jsp ?
vu lee
Ranch Hand
Joined: Apr 19, 2005
Posts: 189
posted
0
I wonder whether you had efficient priviledge to run kill command. Before running killing command in jsp, would you add code to check what your userid was? eg. "whoami".