Posting form to servlet?

I need to post my form to a servlet. I tried inserting my own HTML with a form with an action set to the servlet but Notes insists on wrapping it’s own form around my form.

One method I used was to check the treat document as HTML and enter my own HTML page.

Another method was to override the action setting.

document.forms[0].action=“http://myserver/myservlet

Are there any other methods that I should be using to post to the servlet?