Creating or configuring forms > Configuring the <components> element > Configuring a script upload component

6.1.13 Configuring a script upload component

The script upload component allows user created scripts to be uploaded from the Web browser to the cluster head. The component exists as an active link on a page that, when clicked, loads a dialog window like the one that follows.

Image 6-1: Create Script window

Click to enlarge

To add/delete/modify a script upload component

  1. Open the appropriate XML file located in the Viewpoint home directory. Locate the <components> element.
  2. Create the <component> with a unique id.
  3. Insert the <script-upload> element and set the following three child elements:
    1. Set <server-path> to specify a temporary path on the server where the file should be uploaded. This must be a fully qualified path.
    2. Set <Cloud-path> to specify the final destination path of the file on the Cloud head. This must be a fully qualified path.
    3. Optional: Set <form-submit> to specify an alternative Servlet or other form action URL.

    The server and Cloud paths must be different if you are using an SSH connection to the localhost for Moab; otherwise the file will be deleted.

    <script-upload>
      <server-path>/tmp</server-path>
      <Cloud-path>/var/tmp</Cloud-path>
      <form-submit>/fileupload/script</form-submit>
    </script-upload>

Related topics