I'm using a password field in Spring <form:password>
tag like below,
<form:input path="extBtsBaseDto.extBtsRedmineConnectionDto.basicPassword"/>
Which I'm using to get the password from the user in a screen which is a part of many other screens. These screens work as a wizard and I use Session to hold the values at my main screen DTO. The password I have mentioned above is bind in an inner DTO.
The problem: Suppose I have password field in screen A when I navigate by submitting the data from screen A to B, I can get the password at B but in next the screen it vanishes from the DTO.
I can solve the problem by replacing the Spring <form:password>
tag by normal HTML tag but wondering why this is happening and would like to use Spring tag if there is any solution to this.
If anyone wants to see my code I can share. Thank you for your time.
Have you already tried using
showPassword
attribute of tag? Default is false, try to set true:
<form:password showPassword="true" path="extBtsBaseDto.extBtsRedmineConnectionDto.basicPassword"/>
docs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With