开发者

http post submission error with orbeon forms

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/he开发者_如何转开发llo", "/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:

  1. One from browser to the server, done to /myproject/orbeon/xforms-server (Ajax).
  2. The submission done from Orbeon Forms to 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.log for more information on what is happening at the time the submission runs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜