0

Embedding a ZUL script into an existing servlet

asked 2008-09-01 19:17:39 +0800

subculture7 gravatar image subculture7
6

Hello,

I have a servlet that already outputs HTML code - and I want to embed ZUL components and scripts into my page, from Java.
How is it done? Perhaps through a portlet? Specifically, what's the java code I'd use to do this?

I'm looking for something like:

package test;

import java.io.*;

import javax.servlet.http.*;
import javax.servlet.*;

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?
}
}

Thanks in advance...

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-09-03 13:02:07 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Please post to feature request.

link publish delete flag offensive edit
Your reply
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

Follow

RSS

Stats

Asked: 2008-09-01 19:17:39 +0800

Seen: 230 times

Last updated: Sep 03 '08

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