script « ZK « JSP-Servlet Q&A





2. Problem using ZK script in JSp    zkoss.org

3. Embedding a ZUL script into an existing servlet    zkoss.org

public class HelloServlet extends HttpServlet { public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { PrintWriter out = res.getWriter(); out.println("Below me is a ZK Window!"); String ZKWindow = getOutputOfZKApp("index.zul"); out.println(ZKWindow); out.close(); } private String getOutputOfAKApp(String zul_file){ /// what do I need to do to return the neede HTML code? }}