0 Replies Latest reply on Oct 16, 2000 9:51 AM by 3004

    <jsp: tag_extension/>Cannot resolve symbol

    3004

                I try to use my own jsp tag extension, but i get the "cannnot resolve symbol" error message compiling the servlet. Can anyone help me, please?
                
                Krisztian
                
                This is my code:
                
                nk.jsp:
                     <%@ taglib uri="/nkApp" prefix="nk" %>
                     <nk:hello></nk:hello>
                
                web.xml:
                     <taglib>
                          <taglib-uri>/nkApp</taglib-uri>
                          <taglib-location>/web-inf/nk.tld</taglib-location>
                     </taglib>
                
                nk.tld:
                     <shortname>nk</shortname>
                     <tag>
                          <name>hello</name>
                          <tagclass>nkTag</tagclass>
                     </tag>
                     
                nkTag.java:
                     public class nkTag extends TagSupport{
                          public int doStartTag() throws JspTagException {
                               return EVAL_BODY_INCLUDE;
                          }
                          public int doEndTag() throws JspTagException {
                               String dateString = new Date().toString();
                               try {
                                    pageContext.getOut().write("Hello world.<br/>");
                                    pageContext.getOut().write("My name is " + getClass().getName() +
                                         " and it's " + dateString + "<p/>");
                               } catch (IOException ex) {
                                         throw new JspTagException("Fatal error: hello tag could not write to JSP out");
                               }
                               return EVAL_PAGE;
                          }
                     }