im using orbeon’s xforms engine in separate war mode. The XForms is displayed correctly, but when i’m trying to send a http post, it throws an error.
My submit tag:
< xforms:submission id=”save-submission” ref=”instance(‘books-instance’)” action=”http://localhost:8080/myproject/hello” method=”post” replace=”none” />
My servlet, which should deal with the POST, is on the /hello url in my app.
I tried the action attribute with “/myproject/hello”, “/hello”, etc, but none of them works.
I captured the http post with wireshark, and the message is:
POST /myproject/orbeon/xforms-server
How can I send the HTTP POST directly to my servlet?
Why does it want to send the request to /orbeon? Where’s the mistake?
Thanks!
There are two POSTs you should be able to see with WireShark:
/myproject/orbeon/xforms-server(Ajax).http://localhost:8080/myproject/hello.If you don’t see #2, it might be because the instance is invalid, or some other reason. To figure this out, I’d recommend you use development-level logging and check the
orbeon.logfor more information on what is happening at the time the submission runs.