passing arument to other page
9 Mar 2009 05:12:59 GMT
11 Mar 2010 14:48:27 GMT
11 Mar 2010 14:48:27 GMT
Hi,
you can use in HomePage.zul :
java.util.HashMap args = new java.util.HashMap();
args.put("uname",username.getValue());
args.put("pwd",passwd.getValue());
and to get these variables sue :
String username = arg.get("uname").toString();
String password = arg.get("pwd").toString();
Window w=(Window)Executions.createComponents("second.zul", null, args)
or just you can use session
8 Apr 2010 05:02:15 GMT
8 Apr 2010 05:02:15 GMT
ZK - Open Source Ajax Java Framework
I am working on an application where I am replacing the login.zul with my homePage.zul
1) i have <textbox id="username"/> and <textbox id="passwd"/> on login.zul
2)i want to take this argument and pass to the validate.zs which contains jdbc code for database conectivity and check validate
3) and want some return value from validate.zs file contains function to rdirect to the homePage.zul
how this can be done.
please help me. if u have demo code send me.
thanks,
Vijays