-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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...
Asked: 2008-09-01 19:17:39 +0800
Seen: 230 times
Last updated: Sep 03 '08