Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger
  • Frits Walraven


Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,
Do i need to include any special JAR file for testing Custom Tag handler.I tried to use SimpleTagSupport class, but I cannot find that in the library.

Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No ,
If you are using JSTL , yes you need to add a few classes to your source path.
But for custom tags, you dont need to install anything extra other than the jdk and the web container/J2ee container.
So if a normal servlet program , JSP program runs, then there is some other problem with your code.
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, only things you need are JSP page, tld file and Tag handler
Try this


<%@ taglib prefix="myTags" uri="simpleTag"%>


<?xml version="1.0" encoding="ISO-8859-1" ?>

<taglib xmlns="";


<description>Use of custom tags</description>

package com.example.web;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import javax.servlet.jsp.JspException;
public class SimpleTagTest1 extends SimpleTagSupport{
public void doTag() throws JspException,IOException{
getJspContext().getOut().print("This is the use of custom tag");
Acetylsalicylic acid is aspirin. This could be handy too:
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic