but where to include that mrkup language in TLD file? suppose my TLD file contains following code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>DemoTags</shortname>
<uri>
http://www.stardeveloper.com</uri>
<info>Demo Tags Library</info>
<tag>
<name>firsttag</name>
<tagclass>com.stardeveloper.tag.test.FirstTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Your first JSP Tag</info>
<attribute>
<name>listname</name>
<required>true</required>
</attribute>
</tag>
</taglib>
and block of html code:
<table>
<c:forEach var="it" items="${listx}">
<tr><td>...
....
</c:forEach>
whenever this block will get repeated, listx will have different value but remaining code will remain same throughtout the jsp pages. so that I am planning to send listx value through custom tag. now please tell me whe should i write this block of code in tag file?
thanks.