* LoginAction.java - Use UserDAOImpl type for better source lookup * TermAction.ava - Use obvious serialization version - Implemented add() * UserAction.java - Use more obvious serialization version * TermDAO.java - Renamed listTermById() to getTermById() - Added Javadoc * TermDAOImpl.java - Fixed "FROM term" bug (no SQL, case-sensitive) - saveOrUpdate() now returns boolean (for TermAction) * Term.java - Now imports java.io.Serializable - Added serialization version ID - Use TermDAOImpl type for better source lookup * struts.xml - /doTermAdd now triggers add() - Added basic Term actions * user/nav.jsp - Added /listTerm link to trigger user/termList.jsp * user/termAddForm.jsp - Now functional and reusable for Rename Term * General: - Clean-up: + Renamed Object to ObjectEntity + Source formatting - Added javax.persistence and org.hibernate sources (for Javadoc) - Added PDF documentation generated from OpenDocument Text
/trunk/WebContent/user/nav.jsp |
---|
8,7 → 8,7 |
<li>Begriffe |
<ul> |
<li><a href="termAddForm">Hinzufügen</a></li> |
<li><a href="">Ändern, Löschen</a></li> |
<li><a href="termList">Ändern, Löschen</a></li> |
</ul></li> |
<li>Beziehungen |
/trunk/WebContent/user/termAddForm.jsp |
---|
1,16 → 1,19 |
<%@taglib uri="/struts-tags" prefix="s"%> |
<html> |
<head> |
<title>Begriff erstellen</title> |
</head> |
<body> |
<h1> |
Begriff hinzufügen |
</h1> |
<s:form action="doTermAdd"> |
<s:hidden name="term.id" /> |
<s:textfield name="term.username" label="Name" /> |
<s:submit value="Add" /> |
</s:form> |
</body> |
<head> |
<title>Begriff <s:if test="term.name != ''">umbenennen</s:if><s:else>hinzufügen</s:else></title> |
</head> |
<body> |
<h1> |
Begriff hinzufügen |
</h1> |
<s:form action="doTermAdd"> |
<s:textfield name="term.name" label="Name" /> |
<s:if test="term.name != ''"> |
<s:submit value="Umbenennen" /> |
</s:if><s:else> |
<s:submit value="Hinzufügen" /> |
</s:else> |
</s:form> |
</body> |
</html> |
/trunk/WebContent/user/termList.jsp |
---|
0,0 → 1,41 |
<%@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> |
Property changes: |
Added: svn:mime-type |
## -0,0 +1 ## |
+text/plain |
\ No newline at end of property |