Title: A question about faclet and jsp-tag

Hi all,

Formerly I use self-created jsp-tag to print out the html-code in run-time. My jsp-tag looks as follow:

public class myHtmlOutputTextTag extends BodyTagSupport {
...
        public int doStartTag() {


                // Print the Produktinhalte onto the JSP
                try {
                        JspWriter out = pageContext.getOut();

//                      out.println(output.toString());
                        out.println("<td>this is produktinhalte</td>");
                } catch (Exception e) {
                        System.out.println(e);
                }

                return SKIP_BODY;
        }

And I use this tag in the jsf-file as follow:
...
<%@ taglib uri="/WEB-INF/mytag.tld" prefix="mytag" %>
...
...
        <mytag:myHtmlOutputTextTag/>
...


Now I change to use facelet. It seems facelet dosen't compatible to jsp. How can I handle it? That means how can I create a tag like jsp-tag I created before?

Regards

Reply via email to