-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am new user of Zk
I have more question for zk
Thank you for every answer for me
I want to see that example for use Session and application
In servlet I can use Session on request.getSession() and set attribute
Thank you for example Session
take a look at the Executions class:
String paramValue = Executions.getCurrent().getParameter( "paramName" ) ;
thank you woodyki and caclark
I user extends Window. it easy for me
I can use Session with this code "HttpSession s=((HttpServletRequest)Executions.getCurrent().getNativeRequest()).getSession();"
this is same use Session in servlet.
when I use servlet I can use applicationScope with code "ServletContext context = getServletContext();"
However I don't know how to get applicationScope in Window
to day I found How to use Session in Window is better than "HttpSession s=((HttpServletRequest)Executions.getCurrent().getNativeRequest()).getSession();"
I can use Session with import org.zkoss.zk.ui.Sessions and use Sessions.getCurrent() It work for me
However I don't know how to get applicationScope in Window ?
็ำhelp me
oh i found
getDesktop().getWebApp().getAttribute("app") ; this is use for applicationscope
I think that Zk doc is have some problem for beginer
I read http://docs.zkoss.org/wiki/ZUML_Implicit_Objects
and i know application org.zkoss.zk.ui.WebApp The Web application.
but I don't know How to use WebApp
Asked: 2009-08-22 04:33:55 +0800
Seen: 975 times
Last updated: Aug 29 '09