Hey,
ich fülle die Session und wenn ich es Abfragen will (getAttribute) funktioniert es nicht..
und bei get:
==> Fehlermeldung:
Multiple annotations found at this line:
- Type mismatch: cannot convert from Object
to String
- Type mismatch: cannot convert from Object
to String
ich fülle die Session und wenn ich es Abfragen will (getAttribute) funktioniert es nicht..
Code:
if (login.equals("Login")){
if(!user.checkmailpassword(email, password)){
user.setEmail(email);
user.setPassword(password);
msg.setPortalWelcome();
user.setAngemeldet(true);
session.setAttribute("email", email);
response.sendRedirect("./StartseiteAppl.jsp");
und bei get:
Code:
else if (lehrer.equals("Lehrer - Page")){
String ladmin = session.getAttribute("email");
if (ladmin.startsWith("admin@")){
response.sendRedirect("./LehrerPageView.jsp");
}else{
response.sendRedirect("./StartseiteView.jsp");
}
==> Fehlermeldung:
Multiple annotations found at this line:
- Type mismatch: cannot convert from Object
to String
- Type mismatch: cannot convert from Object
to String