How to call a .zul page from Jsp

asked 2016-07-20 04:48:20 +0800

Sailu gravatar image Sailu

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)

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-24 07:38:01 +0800

Darksu gravatar image Darksu
1991 1 4

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:


Best Regards,


link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2016-07-20 04:48:20 +0800

Seen: 38 times

Last updated: Jul 08 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More