Hi all,
I want to do the followings :-
1. I want to run a batch(.bat) file with some parameter using Runtime.getRuntime().exec command.
2. As soon as the above batch will be called the current page will be forwarded to another page.
Problem I am facing:-
i) When I am using the below code the batch is running but not in a separate process because after the Runtime.getRuntime
().exec is called untill the batch processing ends the
jsp page is NOT getting forwarded to another jsp page.So it is taking longer time to forward to next page. I want it to be immediately forwarded to next page.
ii) Now If I run the below code removing the getErrorStream() snippet the batch is not getting called.
Note:- All the code is within try-catch block.
Please help.