title: Invoke main method in java class from jsp?
body: <p>I had a requirement to create a small file utility class to run off the command line from a windows desktop.  The code got completed, however, after reviewing how to package it, it requires a custom framework from the main application in order to run.  Don't ask why as that would take a while to answer, just take this as a valid assumption.</p>
  
  <p>In any event, now they want a jsp to call this class, but they still want it to be more of a separate utility, even though it's part of the main codebase.  They also want it to call the main method in the utility, which doesn't sound like good design to me, but they didn't want  to change it to a servlet class.</p>
  
  <p>The program just takes in some arguments and then it's basically on one step operation on the files, then it finishes.  Not really a jsp type request/response scenario, but I'm not the one writing the requirements.</p>
  
  <p>From a design perspective, is there a better way to do this for a simple utility application?  </p>
  
  <p>Thanks,</p>
  
  <p>James</p>