Composer « ZK « JSP-Servlet Q&A





1. How to get data inside Servlet passed by Composer explicitly?    zkoss.org

Hi I am new user to ZK. In my application the flow is like this Login.zul --->LoginComposer.java--->LoginServlet.java For this I have used h:form and onclick event of button in Login.zul, LoginComposer.java 's funtion is called and that function inturn will call LoginServlet.java's doPost method., which I have achieved using Clients.submitForm(loginForm); inside LoginComposer.java Now according to given senario ,I am getting all ...

2. can we use composer in jsp page    zkoss.org

Servlet.service() for servlet jsp threw exceptionjava.lang.NullPointerException at org.zkoss.jsp.zul.impl.LeafTag.setDynamicAttribute(LeafTag.java:246) at org.apache.jsp.management.main_jsp._jspx_meth_z_005fwindow_005f0(main_jsp.java:150) at org.apache.jsp.management.main_jsp.access$3(main_jsp.java:142) at org.apache.jsp.management.main_jsp$main_jspHelper.invoke0(main_jsp.java:962) at org.apache.jsp.management.main_jsp$main_jspHelper.invoke(main_jsp.java:1217) at org.zkoss.jsp.zul.impl.RootTag$MyRichlet.service(RootTag.java:300) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:398) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:292) at org.zkoss.jsp.zul.impl.RootTag.doTag(RootTag.java:268) at org.apache.jsp.management.main_jsp._jspx_meth_z_005fpage_005f0(main_jsp.java:93) at org.apache.jsp.management.main_jsp._jspService(main_jsp.java:68) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101) at ...