title: Run java application from JSP page
body: <p>The question on this page asks how to run a java program from a php page:
  <a href="https://stackoverflow.com/questions/2128619/run-java-class-file-from-php-script-on-a-website">Run Java class file from PHP script on a website</a></p>
  
  <p>I want to do the exact same thing from a JSP page. I don't want to import the classes and call functions or anything complicated like that. All I want to do is run a command like:
  java Test
  from a JSP page and then get whatever is printed out to System.out by Test saved in a variable in the JSP page.</p>
  
  <p>How do I do this?</p>
  
  <p>Thanks a lot!!</p>