• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot compile Tag Handler

 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am coding simple tags in Custom tags. but i am not able to compile tag handler. compiler throws error at line 1 - cannot resolve symbol SimpleTagSupport,line 4 - cannot resolve symbol SimpleTagSupport and line 8 - cannot resolve symbol getJspWriter.
here is the tag handler code.

import javax.servlet.jsp.tagext.SimpleTagSupport;
import javax.servlet.ServletException;
import java.io.IOException

public class RandomHandler extends SimpleTagSupport
{
public void doTag() throws ServletException,IOException
{
getJspWriter.out("inside doTag method");
}
}

shall i have to provide any jar files related to custom tags?

Thanks in Advance
 
Imran Vohra
Ranch Hand
Posts: 77
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that is in your classpath. Which is in {TOMCAT DIRECTORY}/common/lib/ if you are using Tomcat 5.5.

Imran
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic