JSP/servlet的隱藏特性我對您在編寫JSP/servlet時使用的技巧等很感興趣。我將開始:最近,我發(fā)現(xiàn)了如何將一個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>
JSP/servlet的隱藏特性
慕妹3242003
2019-06-25 13:08:06