Changes between Initial Version and Version 1 of Ticket #801, comment 101


Ignore:
Timestamp:
Nov 25, 2015, 3:23:52 PM (8 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #801, comment 101

    initial v1  
    1010
    1111 1. JSP file `select_dna_for_start_plate.jsp` in `resources/´libprep/` updated in step 4 by adding a button to download a library preparation file. The button is placed below the plate display, over the navigation buttons.
    12  2. Javascript file `select_dna_for_start_plate.js` in `resources/´libprep/` updated:[[BR]]a. Function `initPage()` updated by adding an event handler for the library preparation file download button, coupled to new function `downloadLibPrepFile()`.[[BR]]b. New function `downloadLibPrepFile()` added. It sends a "POST" request to command "`PrepareDownloadLibPrepFile`" in servet LibPrepServlet, with callback function `downloadLibPrepFileResults(response)`.[[BR]]c. New function `downloadLibPrepFileResults(response)` added. It retrieves the path to a temporary file on the server and constructs a url for a "GET" request to command "`DownloadLibPrepFile`" in servlet `LibPrepServlet`, after which "`window.open(url)`" is called to present a download file dialog.
     12 2. Javascript file `select_dna_for_start_plate.js` in `resources/´libprep/` updated:[[BR]]a. Function `initPage()` updated by adding an event handler for the library preparation file download button, coupled to new function `downloadLibPrepFile()`.[[BR]]b. New function `downloadLibPrepFile()` added. It sends a "POST" request to command "`PrepareDownloadLibPrepFile`" in servet `LibPrepServlet`, with callback function `downloadLibPrepFileResults(response)`.[[BR]]c. New function `downloadLibPrepFileResults(response)` added. It retrieves the path to a temporary file on the server and constructs a url for a "GET" request to command "`DownloadLibPrepFile`" in servlet `LibPrepServlet`, after which "`window.open(url)`" is called to present a download file dialog.
    1313 3. Java servlet class/file `LibPrepServlet.java` in `src/net/sf/basedb/meludi/servlet/` updated:[[BR]]a. Protected method `void doGet(HttpServletRequest req, HttpServletResponse resp)` updated with new command "`DownloadLibPrepFile`". It retrieves a path to a temporary file, reads the data and adds it to an output buffer, after which it removes the temporary file.[[BR]]b. Protected method `void doPost(HttpServletRequest req, HttpServletResponse resp)` updated with new command "`PrepareDownloadLibPrepFile`". It stores the sent data in a temporary file on the server and sends back the file path.