19 package org.turro.elephant.zkoss;
21 import javax.servlet.http.HttpServletRequest;
22 import javax.servlet.http.HttpServletResponse;
23 import javax.servlet.http.HttpSession;
24 import org.turro.annotation.ElephantSessionResolver;
25 import org.turro.elephant.context.ISessionResolver;
26 import org.zkoss.web.fn.ServletFns;
27 import org.zkoss.zk.ui.Sessions;
33 @ElephantSessionResolver
38 HttpSession ses =
null;
43 ses = (HttpSession) Sessions.getCurrent(create).getNativeSession();
51 return (HttpServletRequest) ServletFns.getCurrentRequest();
52 }
catch(Exception ex) {
60 return (HttpServletResponse) ServletFns.getCurrentResponse();
61 }
catch(Exception ex) {
HttpServletRequest getRequest()
HttpServletResponse getResponse()
HttpSession getSession(boolean create)