My plan is to have a WAR file that consists of Servlet and Custom JAVA Class.
The process in a nutshell is that when the user selects a list of files from GUI, we are invoking a PERL script, this PERL script uses the Teamsite's CGI Library and parses the form data, that helps in getting all the files that were selected by the user. Then the script does a bunch of processing and copies these files to another workarea within teamsite.