Browsers automatically prompt users to save their password after login. In fact, this functionality provides a big advantage for allowing the user to login afterwards without reentering his credentials again. However, it also has its disadvantages and some people considers it as a security leak since anyone can view your saved passwords using the browser settings. In this tutorial, we...
In this tutorial we show how Spring Boot serves static resources like (html, js, css) in a web application. 1- Default path for static resources By default Spring Boot serves static resources defined under the following paths: /META-INF/resources/ /resources/ /static/ /public/ Except for index.html which is served as the root resource when accessing the root URL of a Spring Boot application,...
In this tutorial we explain the common way of passing data from html to java servlets, we mostly focus on passing form data entered by end-users through pages like: login, sign-up, contact-us .. 1. Pass form fields to servlet Consider the following login.html:
<form name="loginForm" method="GET" action="LoginProcessor">
Username: <input type="text" name="username"/> <br/>
Password: <input type="password" name="password"/> <br/>
<input type="submit" value="Login" />
Users interact with web applications through forms, the “form” element is the common way for asking end-users...