<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %> <html> <head> <title>JSP 2.0 Examples - Hello World Using a Tag File</title> </head> <body> <h1>JSP 2.0 Examples - Hello World Using a Tag File</h1> <hr> <p>This JSP page invokes a custom tag that simply echos "Hello, World!" The custom tag is generated from a tag file in the /WEB-INF/tags directory.</p> <p>Notice that we did not need to write a TLD for this tag. We just created /WEB-INF/tags/helloWorld.tag, imported it using the taglib directive, and used it!</p> <br> <b><u>Result:</u></b> <tags:helloWorld/> </body> </html>