We currently have a web application (version control) through which users upload and download the files from server. Since it is a web application we are not able to make few restrictions at the client level. Hence we are planning to create a stand alone swing application which will act as an agent between the users and the web app. Instead of logging into web app, users need to login into swing application and when she/he selects the files and click download, swing app should call and process the JSP and return the response (success or failure) back to swing application so that swing application will notify the download and upload completion.
Note: Swing application should call and process the JSP and it should not open the JSP in browser. Since it is very old application upload and download logic is written in a servlet. Other logics like access restrictions etc. (database code) Is written in JSP itself.