Subversion Repositories WebE

Compare Revisions

Last modification

Regard whitespace Rev 29 → Rev 30

/trunk/src/ch/ffhs/webE/action/LoginAction.java
35,6 → 35,7
if ("".equals(getUserName()) || "".equals(getPw())
|| getUserName() == null || getPw() == null)
{
addFieldError("userName", "Falscher Username oder Passwort");
return ERROR;
}
 
41,6 → 42,7
String verifiedUser = verifyUser(getUserName(), getPw());
if (verifiedUser.equals("failed"))
{
addFieldError("userName", "Falscher Username oder Passwort");
return ERROR;
}
else
53,9 → 55,14
}
}
 
/**
* Logout ausführen. Zerstört die Daten in der Session
* @return String
*/
public String doLogout()
{
// TODO: Kill session content for logout
//Kill Session content
ActionContext.getContext().getSession().clear();
return SUCCESS;
}
 
/trunk/WebContent/index.jsp
9,10 → 9,12
<h1>Login</h1>
 
<s:form action="Login">
<s:fielderror />
<s:textfield name="userName" label="Benutzername" />
<s:password name="pw" label="Passwort" />
<s:submit />
<s:submit value="Login" />
</s:form>
<p>
Klicken Sie <a href="index.jsp">hier</a> wenn Sie Ihr Passwort vergessen haben.
</p>
/trunk/WebContent/admin/userList.jsp
1,4 → 1,7
<%@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>User bearbeiten</title>
28,10 → 31,15
<td><s:url id="editURL" action="editUser">
<s:param name="id" value="%{id}"></s:param>
</s:url> <s:a href="%{editURL}">Edit</s:a></td>
</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="deleteUser">
<s:param name="id" value="%{id}"></s:param>
</s:url> <s:a href="%{deleteURL}">Delete</s:a></td>
</s:url> <s:a href="%{deleteURL}">
<img src="${contextPath}/resources/icons/delete.png" alt="delete" />
</s:a></td>
</tr>
</s:iterator>
</table>
/trunk/WebContent/admin/userAddForm.jsp
15,7 → 15,12
<s:textfield name="user.lastname" label="Nachname" />
<s:checkbox name="user.admin"
label="Soll der User admin sein?" />
<s:if test="user.id != ''">
<s:submit value="Edit" />
</s:if><s:else>
<s:submit value="Add" />
</s:else>
</s:form>
</body>
/trunk/WebContent/admin/relTypeList.jsp
1,4 → 1,7
<%@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>Beziehungstypen bearbeiten</title>
9,8 → 12,8
<p>Hier k&ouml;nnen Sie die Beziehungstypen anpassen.</p>
 
<s:if test="relTypeList.size() == 0">
<p>Keine Benutzer gefunden</p>
</s:if>
<p>Keine Beziehungstypen gefunden</p>
</s:if><s:else>
<table>
<tr>
<th>Bezeichnung A =&lt; B</th>
23,13 → 26,18
<td><s:url id="editURL" action="editRelType">
<s:param name="id" value="%{relationshipId}"></s:param>
</s:url> <s:a href="%{editURL}">&Auml;ndern</s:a></td>
</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="deleteRelType">
<s:param name="id" value="%{relationshipId}"></s:param>
</s:url> <s:a href="%{deleteURL}">L&ouml;schen</s:a></td>
</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>
/trunk/WebContent/admin/relTypeAddForm.jsp
11,7 → 11,13
<s:hidden name="relType.relationshipId" />
<s:textfield name="relType.nameFrom" label="Name vom Ausgangspunkt (z.B. ist Vater von)" />
<s:textfield name="relType.nameTo" label="Name vom Zielpunkt (z.B. ist Sohn von)" />
<s:if test="relType.relationshipId != ''">
<s:submit value="Edit" />
</s:if><s:else>
<s:submit value="Add" />
</s:else>
</s:form>
</body>
</html>