This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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.
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.
SCJP, SCWCD, SCBCD, IBM XML, IBM OOAD, SCEA 5, ITAC - Distinguished IT Architect.
com/example/web/SimpleTagTest1.java package com.example.web; import javax.servlet.jsp.tagext.SimpleTagSupport; import java.io.IOException; 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"); } }
yeah, but ... what would PIE do? Especially concerning this tiny ad:
Gift giving made easy with the permaculture playing cards