-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hai,
i search in the forum about how to write and read a cookie from zk framework.
And i found this
1.addCookie
HttpServletResponse response = Executions.getCurrent().getNativeResponse();
Cookie userCookie = new Cookie("user", "xxx123");
response.addCookie(userCookie);
2.getCookie
Cookie [] cookies = Executions.getCurrent().getNativeRequest().getCookies();
but both code got and error step 1 "Executions.getCurrent().getNativeResponse() " should i need to cast that object first ?
step 2 ".getCookies" undefined object.
any solution ?
TIA,
Andy Susanto
hai,
ok i solve again.
and the answer yes you need to cast first
regards,
Andy Susanto
Asked: 2008-10-31 23:56:34 +0800
Seen: 248 times
Last updated: Nov 01 '08