File writing demo B (absolute URL)
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
Send data using JS
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.