Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję0
How to block the jsp page if the page is not accessed by entering correct data in the login form through post method
Jsp and servlet JAVA
1 Odpowiedź
+ 1
Use user principals, you can get it from the HttpServletRequest:
http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getUserPrincipal%28%29