Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Entity Alignment Concepts Recent Advances And Novel Approaches

Authors: Xiang Zhao ,Weixin Zeng ,Jiuyang Tang

1st Edition

9819942527, 978-9819942527

More Books

Students also viewed these Databases questions

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago