-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am giving a call to a Jsp page to perform some functionality by 3rd party tools. After the action performed i want to back to another zul page. But if i do Executions.createcomponent inside JSp directives it throws null pointer exception on Executions.
In the following way i have tried to use Executions. <%@ page import="org.zkoss.zk.ui.Executions"%>
Below is the error.
SEVERE: Servlet.service() for servlet [jsp] in context with path [/module-backoffice] threw exception [An exception occurred processing JSP page /core/upload.jsp at line 213
210: Map<string, object=""> args = new HashMap<string, object="">(); 211: args.put("OcrArgs", ocredText); 212: //Executions.sendRedirect("/core/folder/scantoocr.zul"); 213: Executions.createComponents("/core/folder/scantoocr.zul",null, args); 214: //request.setAttribute("ocredText", ocredText); 215: //response.sendRedirect("/core/folder/scantoocr.zul"); 216:
Stacktrace:] with root cause java.lang.NullPointerException at org.zkoss.zk.ui.Executions.createComponents(Executions.java:176) at org.apache.jsp.core.uploadjsp.getData(uploadjsp.java:242) at org.apache.jsp.core.uploadjsp.jspService(upload_jsp.java:369) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
Hello Sailu,
Since you are in a jsp page, you can use jsp commands to redirect to any web page including zul pages as shown below:
http://www.javatips.net/blog/jsp-redirect-example
Best Regards,
Darksu
Asked: 2016-07-20 04:48:20 +0800
Seen: 43 times
Last updated: Jul 08 '18
ZK 7.0.3 doAfterCompose is not called for GenericForwardComposer
Power of ZK Calender With Charts 2 and Other Components
ZK7 atlantic theme: vlayout/hlayout spacing
Structuring zul-code without includes?
css zk 7.0.3 with ie9 not work
Change listbox MVVM template with Java or how to let user change column order