I'm doing a web page in jsp with netbeans and I need to validate that the user has logged in to show some pages that should be restricted I've done this before but with php in the following way
session_start();
if (!isset($_SESSION['missael']))
header('Location: index.php');
Now I need to implement it with java, any ideas?