struts 2 password preset value
i want set preset 开发者_StackOverflowvalue in struts 2 password tag, can anybody tell me advance for thanks
for presetting value of any component all you need to do is set value attribute to whatever value you want or keep the name attribute equal to the bean property name in the calling action. this works as the value attribute is set to the name attribute by default.
For password there is one other thing you need to do i.e- set showPassword attribute of password component to true. it will then show the password in the masked form
精彩评论