PDA

View Full Version : password field in spring form tag?



samsam007
Aug 3rd, 2010, 06:23 PM
Hi,

I tried the following form tag for password, but it is flagged as error tld,


<td><form:input cssClass="portlet-form-input-field" type="password" path="password" size="30" maxlength="80" /></td>


what is the workaround for using password field with form:input tag?

I tried the following normal html tag, but my controller can't get the value from the password field,


<input cssClass="portlet-form-input-field" type="password" value="${password}" size="30" maxlength="80" />

or


<input cssClass="portlet-form-input-field" type="password" value="${partnerAssociate.password}" size="30" maxlength="80" />


Appreciate for any suggestion and simple example.

Thanks
Sam

samsam007
Aug 3rd, 2010, 06:28 PM
Hi,

I tried the following form tag for password, but it is flagged as error tld,



what is the workaround for using password field with form:input tag?

I tried the following normal html tag, but my controller can't get the value from the password field,


or


Appreciate for any suggestion and simple example.

Thanks
Sam

I ve got this resolved by referring to the following reference page:
http://oss.org.cn/ossdocs/framework/spring/2.0.x/zh-cn/spring-form.tld.html#spring-form.tld.password

Regards
Sam