Not really Arc related, but here you go in 3 steps:
1 - Paste the following code into a new document test.ss and save in servlet example folder (/usr/plt/collects/web-server/default-web-root/servlets/examples/test.ss)
If document name test.ss changes, change the module name on first line.