Another option is to write your own TextTag class something like this:
public class TextTagNoAutoComplete extends BaseFieldTag { public TextTagNoAutoComplete() { super(); this.type = "text"; doReadonly = true; } protected void prepareOtherAttributes(StringBuffer handlers) { prepareAttribute(handlers, "autocomplete", "false"); } }
and specify textnac for this class in your tld mapping! .. and viola! Not the best reusable code. Provided that Struts 1.x will by no means be reviewed, this sort of monkey-patch code is more than enough from my point of view :)
source share