ZK 取得 httpRequest 與 servletContext

摘要:ZK 取得 httpRequest 與 servletContext

 

 

ZK 如何得到 httpRequest servletContext

 

  ServletContext sc =

    (ServletContext) Sessions.getCurrent().getWebApp().getNativeContext();

       

  HttpServletRequest request =

    (HttpServletRequest) Executions.getCurrent().getNativeRequest();

 

 

Rocky Wang.  OCUP, NCLP, SCJP, SCWCD, SCBCD