Wie kann ich denn von meiner Datenbank bean, die checkSession Methode aufrufen!? Check das irgendwie nicht Ganz? Er sagt immer prefix ist falsch? Es handelt sich um Zeile 14...
Java:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<jsp:useBean id="db" class="beans.Datenbank" scope="session" />
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<c:if test="${param.wrong == 'true'}"><c:out value="Username oder Password vergessen"/></c:if>
<c:choose>
<c:when test="${db.checkSession(session.getId)}">
<form action="login.jsp" method="post">
Name: <input type="text" name="username" maxlength="20"/><br>
Passwort: <input type="password" name="password" maxlength="20"/><br>
<input type="submit" value="Submit"/>
</form>
</c:when>
<c:otherwise><c:redirect url="login.jsp"/></c:otherwise>
</c:choose>
</body>
</html>