• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Cannot compile Tag Handler

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 77
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic