Created new branch for Issue80. InputSubTab displays file chooser and submit button.
Created FileUploadServlet, handles getting contents of uploaded text file. Added new dependency in SYNOPTIC_LIB: commons-fileupload-1.2.2.jar
Updated web.xml with new servlet and servlet-mapping definition. Needed for mapping between InputSubTab and FileUploadServlet when log text file is uploaded.
FileUploadServlet for text file uploading.
commons-fileupload-1.2.2.jar for FileUploadServlet
Removed unnecessary form field name in error String.
Updated error String.
Added new parseUploadedLog method for parsing log files after saving them on server disk.
Added new parseUploadedLog method for parsing log files after saving them on server disk.
Added radio buttons for users to specify which log input type to use: input to text area or upload log file. Created a ValueChangedHandler to listen to clicks on radio buttons, enabling/disabling text area or upload button depending on which radio button is selected. Created two private functions for extracting expressions since they were used by two inner classes. When parse log button is clicked, it will save log file to server if log file option or else parse log in text area like before. Changed form handler to call SynopticService to parse log file after form submitted succesfully.
Changed name of servlet to LogFileUploadServlet. Functionality is changed now, it saves upload log file to server's disk. Improved error handling mentioned by Ivan's previous code review. Added better documentation.
Added new function parseUploadedLog. This reads the log file saved on disk from before, and gets the file path from a session attribute. Grabs contents inside file and passes to parseLog method.
Folder to store log files.
Updated web.xml to reflect some name changes. Added comment regarding LogFileUploadServlet
Changed radio button labels
Set margin property for radio buttons (.LogTypeRadio)
Removed unused imports.
Remove unused imports.
Removed unused imports.
Remove old FileUploadServlet (now changed to new file called LogFileUploadServet)