-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I defined o Locale object and have set it in the session using Session.getCurrent().setAttribute(....). When i try to access the information in the session from a jsp file it doesn't return anything. Did zk really set it in the session or is there a special way to access zk session from a jsp ?
Thanks
Hi ~~
In the .jsp page, you can use Sessions.getCurrent().setAttrbute(...), just the same as old times,
for example :
in login.jsp, I use session to save user's name
Sessions.getCurrent().setAttribute("user", name);
in main.jsp I could get user's name from session
Sessions.getCurrent().getAttribute("user");
I just use those in these days, it work~~hope could help you
Asked: 2009-11-04 03:58:49 +0800
Seen: 417 times
Last updated: Nov 08 '09