I have a apache wicket form where the contents of the form should be sent to other external website. Is that possible in wicket, If possible, please post some code. I tried with new RedirectPage(url); . But, its sending a GET request instead of POST.
问问题
1804 次
2 回答
2
在您的检票口表单上覆盖 getActionUrl() 以返回您需要提交的网址。
于 2013-06-18T22:56:44.363 回答
1
Java代码:
Form<?> form = new Form<Void>("myform") {
private static final long serialVersionUID = 1L;
@Override
protected String getActionUrl() {
return "https://www.stackoverflow.com";
}
}
add(form);
html代码:
<form wicket:id="myform">
<input type="submit"/>
</form>
于 2016-03-12T04:40:25.510 回答