Hi everyone!
I am working with JSF and servlets. I need to make a servlet that uses JSF tags to generate a web page. I cannot do it using JSP. But the instruction out.println() does not work with JSF tags. I want to do something like:
PrintWriter out = response.getWriter();
out.println( "<h:outputText value=\"Some Text\" />" );
But it does not work. The resulting page does not shows anything. I think it is because the resulting page must be only HTML. How can I work with JSF inside the servlet? Is there a way I can work with faces components and then get their resulting HTML code as a String to put it in the out.println()?
Thanks!