We help IT Professionals succeed at work.

How to exceute a batch  file using  JSP

devmasters
devmasters asked
on
Hi,
          I am a newbie to JSP. Could anyone help me how to execute batch file using JSP?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016

Commented:
What kind of a batch file? What does it do?

Author

Commented:
It will execute some db scripts. At least i need some command level executions.Is that possible to do?
CERTIFIED EXPERT
Top Expert 2016
Commented:
You'd probably be better off with a servlet. You could use the following, though i'm not sure you would have 100% control over threading/processes in the context of a web container.

http://technojeeves.com/joomla/index.php/free/52-runtimeexec

Author

Commented:
That works....Thanks a lot
CERTIFIED EXPERT
Top Expert 2016

Commented:
:)

Explore More ContentExplore courses, solutions, and other research materials related to this topic.