Olá amigos, existe algo semelhante em jsf ?
[b]<%
String cContext = request.getContextPath();
try {
String codUsr = session.getAttribute(“codUsr”).toString();
String tipoUsr = session.getAttribute(“tipoUsr”).toString();
if (codUsr == null) {//Não foi efetuado login
response.sendRedirect(cContext);
}
} catch(Exception ex) {
response.sendRedirect(cContext);
}
%>[/b]
Estou usando .xhtml
Desde já agradeço qualquer ajuda?
Abraços
Jomello