<%@taglib uri="/struts-tags" prefix="s"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <c:set var="contextPath" value="${pageContext.request.contextPath}" /> <html> <head> <title>Begriff bearbeiten/löschen</title> </head> <body> <h1>Liste der Begriffe</h1> <s:if test="termList.size() == 0"> <p>Keine Begriffe eingegeben</p> </s:if> <s:else> <table> <tr> <th>Begriff</th> </tr> <s:iterator value="termList" status="stat"> <tr> <td><s:property value="name" /></td> <td><s:url id="editURL" action="editTerm"> <s:param name="id" value="%{objectId}"></s:param> </s:url> <s:a href="%{editURL}"> <img src="${contextPath}/resources/icons/page_white_edit.png" alt="edit" /> </s:a></td> <td><s:url id="deleteURL" action="deleteTerm"> <s:param name="id" value="%{id}"></s:param> </s:url> <s:a href="%{deleteURL}"> <img src="${contextPath}/resources/icons/delete.png" alt="delete" /> </s:a></td> </tr> </s:iterator> </table> </s:else> </body> </html>