Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
