-
FEATURED COMPONENTS
First time here? Check out the FAQ!
The GET way, that exposes the values and is bad:
zul:
...
<intbox id="ibxCodSM"/>
<button label="Send" id="btnSMc"
...
Controller.java:
...
Intbox ibxCodSM;
Intbox ibxCodCidade;
public void onClick$btnSMc() {
String sv = "SMc?code=" + ibxCodSM.getValue();
execution.sendRedirect(sv, "_blank");
}
...
SMc (my servlet):
...
int code = Integer.parseInt(request.getParameter("code"));
...
So url shows: http://localhost:8080/app/SMc?code=1
I'd like an url: http://localhost:8080/app/SMc and the component code sent via POST.
Thanks a lot.
Please read:
Cheers, Maik
you could use jquery to post it
1. jquery post api here : http://api.jquery.com/jQuery.post/
2. use Clients.evalJavascript to invoke the script.
/Dennis
Asked: 2011-04-12 10:04:48 +0800
Seen: 289 times
Last updated: Apr 14 '11