how to hide password character in text field

11,118

Hopefully this can help you.

<form:password path="password_field_name" value="my_password"/>
Share:
11,118
user3014926
Author by

user3014926

Updated on June 14, 2022

Comments

  • user3014926
    user3014926 almost 2 years

    I know how to let user input their password with input type="password" field in JSP. But I get their input password using servlet, it would show all characters. How do you hide these characters in regular HTML or JSP?

    For instance, if I have

    password: MKS09js5

    how do I hide or make the password **? (This is not for search or input)