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.
Asked
Active
Viewed 1,941 times
2
-
1Does this help: http://stackoverflow.com/questions/11954498/how-to-use-post-method-in-wicket ? – Joachim Rohde Apr 04 '13 at 10:38
2 Answers
1
Java code:
Form<?> form = new Form<Void>("myform") {
private static final long serialVersionUID = 1L;
@Override
protected String getActionUrl() {
return "https://www.stackoverflow.com";
}
}
add(form);
Html code:
<form wicket:id="myform">
<input type="submit"/>
</form>

Daniel Huang
- 113
- 1
- 7