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!
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
您应该能够使用 WireShark 看到两个 POST:
/myproject/orbeon/xforms-server
(Ajax)。http://localhost:8080/myproject/hello
提交完成。如果您没有看到 #2,可能是因为实例无效或其他原因。为了解决这个问题,我建议您使用 开发级别日志记录并检查
orbeon.log
以获取有关提交运行时发生的情况的更多信息。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.log
for more information on what is happening at the time the submission runs.