Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Comment on this custom tag example. In your own words write a description of the code in all of the multiple line comment sections in
-
- Comment on this custom tag example. In your own words write a description of the code in all of the multiple line comment sections in each file. To successfully complete this assignment, you will need to research the Internet for more information on custom tags.
HelloWorldClass.java TagSupport doEndTag() JspException web.xml /helloWorldTag /WEB-INF/taglib.tld taglib.tld
HelloWorldTag.jsp taglib uri prefix -
HelloWorldClass.java
package myTags; import java.io.*; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; public class HelloWorldClass extends TagSupport{ public int doEndTag() throws JspException{ JspWriter out = pageContext.getOut(); try{ out.println("Hello World!"); } catch(Exception e){ } return super.doEndTag(); } }
-
web.xml
/helloWorldTag: /WEB-INF/taglib.tld -
taglib.tld
1.0 1.1 helloWorldTag myTags.HelloWorldClass -
HelloWorldTag.jsp
Hello World JSP <%@ taglib uri="/helloWorldTag" prefix="easy" %>
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started