Its not given in the docs of html:text tag that it automatically generates the ID attribute. How did you check that the generated input tag has an ID attribute?? I suggest you try this
This will generate an id="country" attribute for the input tag...
I have written what ever you sent.
Actually i didnot get any error or warning messege in cosole.Actually its not calling autocomplete("getdata.jsp") method .