Java Server Pages 1.2


JSP.5.5.1 JSP JSP-


JSP XML.

JSP- JSP:

 

<html>

<title>positiveTagLib</title>

<body>

<%@ taglib uri="http://java.apache.org/tomcat/examples-taglib" prefix="eg" %>

<%@ taglib uri="/tomcat/taglib" prefix="test" %>

<%@ taglib uri="WEB-INF/tlds/my.tld" prefix="temp" %>

<eg:test toBrowser="true" att1="Working">

Positive Test taglib directive </eg:test>

</body>

</html>

XML- JSP-:

 

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"

xmlns:eg="http://java.apache.org/tomcat/examples-taglib"

xmlns:test="urn:jsptld:/tomcat/taglib"

xmlns:temp="urn:jsptld:/WEB-INF/tlds/my.tld"

version="1.2">

<jsp:text><![CDATA[<html>

<title>positiveTagLig</title>

<body>

]]></jsp:text>

<eg:test toBrowser="true" att1="Working>

<jsp:text>Positive test taglib directive</jsp:text>

</eg:test>

<jsp:text><![CDATA[

</body>

</html>

]]></jsp:text>

</jsp:root>