Mega Code Archive

 
Categories / Java Tutorial / JSTL
 

Build Custom Tag Based On JSTL

<%@ taglib prefix="myTag" tagdir="/WEB-INF/tags" %> <html> <head> <title>EL Type Conversion Examples</title> </head> <body> <h1>EL Type Conversion Examples</h1> <myTag:CharacterType val="this is it"/> <myTag:CharacterType val="8"/> <myTag:CharacterType val="3.0001"/> <br/> <myTag:DoubleType val=""/> <myTag:DoubleType val="-3"/> <br/> <myTag:BooleanType val=""/> <myTag:BooleanType val="true"/> <myTag:BooleanType val="t"/> <myTag:BooleanType val="3.1"/> </body> </html>