<

# File writing demo

- Option 1: sending data using an HTML form Subdirectory (relative to /opt/tomcat/saved; optional)
  File name (without directory name)
  Please type some arbitrary text data here
  When you click "submit", the data will be sent to the server, where they will be written into a specified file. The success (or error) report, in JSON format, on will be loaded into the browser.
- Option 2: sending data using JavaScript

  This options ignores the "append" selector. Instead, click on one of the two buttons:

  The response from the server will appear below:
  NONE YET

See also writing example 2, which is identical to this one, but uses absolute URLs.