I have some block of html code (includes some jstl tags...tables...td�) in one jsp page and that block of code get repeated in that jsp page. That code is of around 100 lines. It got repeated for four times so that it takes 400 lines extra. I am thinking to use custom tags. But I don�t know how to include that html block of code in the dostarttag method of java class which implements Tag interface. Or is there any other way to handle this situation?
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?