469,609 Members | 1,228 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Calling Shell/Perl script from Struts application

I have a Struts application developed following the MVC method (forms, actions, beans, etc)..

I have a JSP page with 2 buttons A and B. When B is clicked, a Struts action will be executed.

But when A is clicked, I want to execute a script (ksh or Perl) on the server and get the response back to my form thru the use of (Javascript AJAX) Http Request object (hence, w/o refreshing my JSP page).

So far so good except that instead of executing the script, the content of the script is returned back to my JSP page.

Does any one know how to set up for a JSP page in Struts framework to call a Shell/Perl/C executable residing in the same domain ?

Apr 26 '07 #1
0 1427

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Mike Bobbitt | last post: by
2 posts views Thread by Mohsin | last post: by
1 post views Thread by speedster | last post: by
8 posts views Thread by Vinod | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.