title: Not able to execute a batch file in JSP
body: <p>I am trying to execute a batch file in a jsp which resides in the TOMCAT Server. jsp is in webapps/ROOT/test.jsp, batch file is also placed in the same location as webapps/ROOT/test.bat. Following is my JSP code: </p>
  
  <pre><code>&lt;%
      Process p=Runtime.getRuntime();
      String scriptExecute = "cmd /c start  test.bat";
      try {
          p.exec(scriptExecute);
      } catch (Exception e) {
          e.printStackTrace();
      }
  %&gt;
  </code></pre>
  
  <p>On executing this jsp what I get is blank page. Kindly provide me a solution for this.</p>