When typing a password, you do not want someone looking over his shoulder and no way the password. Thus, asterisks are used instead, as shown in the illustration above. No Java code is needed for this in Struts. Take a look at the JSP tags below and note that the property is in a name tag html: text but the password property is in a html. It seems to me to do is initialize the property in your ActionForm associated with your radiobutton before arriving on the jsp, I did
Code:
1. <Html: radio name = "myForm" property = "foo" value = "true"> <bean:message key="lbl_eu_y"/> </ html: radio>
2. <Html: radio name = "myForm" property = "foo" value = "false"> <bean:message key="lbl_eu_n"/> </ html: radio>
Bookmarks