password is auto-completed despite setting redisplay=false in JSP (Struts)

Posted by lmcgowin on Stack Overflow See other posts from Stack Overflow or by lmcgowin
Published on 2013-10-18T21:51:03Z Indexed on 2013/10/18 21:53 UTC
Read the original article Hit count: 191

Filed under:
|
|
|

So I have a web application on Tomcat, built on top of Struts 1.1. Here is a snippet of my JSP, it's a login.

<html:form action = "LoginAction" focus = "username">
<table>
   <tr><td align = "right">User name: </td> <td><html:text property = "username"/> </td></tr>
   <tr><td align = "right">Password: </td><td><html:password property = "password" redisplay = "false"/></td></tr>
</table>
</html:form>

Snippet from struts-html-1.1.tld:

<tag>
   <name>password</name>
   <tagclass>org.apache.struts.taglib.html.PasswordTag</tagclass>
   <attribute>
      <name>redisplay</name>
      <required>false</required>
      <rtexprvalue>true</rtexprvalue>
   </attribute>
</tag>

Resulting HTML: Having trouble getting this to post as code but the relevant part is an input tag of type 'password' with no reference to redisplay, autocomplete, etc. It is my understanding that the redisplay element should be passed through Struts to appear in the HTML.

© Stack Overflow or respective owner

Related posts about java

Related posts about jsp