Hi,

 

I am developing an application in which I have to turn off autocomplete
option for entering email Id and retype Email Id. 

 

I wrote a custom tld for text tag  to make autocomplete option turn
off..

 

Unfortunately I am using struts 1.1 which is does not support the
method..

 

This is my code

public class TextTag extends org.apache.struts.taglib.html.TextTag {
   protected String autocomplete;
  public String getAutocomplete() {

return autocomplete;

}

public void setAutocomplete(String autocomplete) {
 
        this.autocomplete = autocomplete;
 
  }
 
    public void prepareOtherAttributes(StringBuffer sb) {
 
        if (autocomplete != null) {
 
            sb.append(" autocomplete=\""+autocomplete+"\"");

        }

    }

}

 

 

when I view source I am not able to see the autocomplete off option..

 

form forums I came to know that struts 1.1 does not support overriding
of prepareOtherAttributes method();

 

I would be grateful if I get solution of   how to implement this in all
browsers using struts 1.1.

 

Regards,

Jyotsna.T,



-----------------------------------------
This email may contain confidential and privileged material for the
sole use of the intended recipient(s). Any review, use, retention,
distribution or disclosure by others is strictly prohibited. If you
are not the intended recipient (or authorized to receive for the
recipient), please contact the sender by reply email and delete all
copies of this message. Also, email is susceptible to data
corruption, interception, tampering, unauthorized amendment and
viruses. We only send and receive emails on the basis that we are
not liable for any such corruption, interception, tampering,
amendment or viruses or any consequence thereof.

Reply via email to