Hidden features of JSP/Servlet
Posted
by mkoryak
on Stack Overflow
See other posts from Stack Overflow
or by mkoryak
Published on 2010-03-26T13:12:57Z
Indexed on
2010/03/26
19:13 UTC
Read the original article
Hit count: 311
I am interested in your tricks etc used when writing JSP/Servlet. I will start:
I somewhat recently found out how you can include the output of one JSP tag in an attribute of another tag:
<c:forEach items="${items}">
<jsp:attribute name="var">
<mytag:doesSomething/>
</jsp:attribute>
<jsp:body>
<%-- when using jsp:attribute the body must be in this tag --%>
</jsp:body>
</c:forEach>
© Stack Overflow or respective owner