JSP/servlet的隐藏特性
我对您在编写JSP/servlet时使用的技巧等很感兴趣。我将开始:
最近,我发现了如何将一个JSP标记的输出包含在另一个标记的属性中:
<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>
largeQ
相关分类