I don't use the spring framework. But I think you can use "Tag files". Look at
http://onjava.com/pub/a/on
http://java.sun.com/j2ee/1
http://today.java.net/pub/
> bgCatX_Y will change in value.
Could you put the values in a List ?
For example (I didn't test this), if your list is bgCatList , then in your JSP you could use
<%@ taglib prefix="myTags" tagdir="/WEB-INF/tags" %>
<myTags:myTest items="${bgCatList}" path="${ctxPath}" />
Main Topics
Browse All Topics





by: danw11Posted on 2009-10-17 at 15:54:18ID: 25597914
I was just looking at an article describing writing a JSTL tag extending BodyTagSupport. I wonder if I could do it this way such that my custom tag would look like this. This seems to be the best approach for separating business logic from view code in that the tag would completely handle populating the vars and iterating as many times as necessary. But not sure about actual implementation here....need a real expert on this one.....I think:
is); $('#bgNet1').attr('checked ',true);" src="<VAR2>">
<mt:mytag>
<div id="<VAR1>" class="listBoxWrapper ep_catSubSwitch">
<div id="catSlider1" style="width:500px; height:60px; overflow:hidden; display:block">
<div id="catSlidePane1">
<div>
<img class="ep_imgThumb imgInsert" onclick="highlightThumb(th
</div>
</div>
</div>
</div>
</mt:mytag>