I am trying to set tab-index property using a scriptlet variable(initialized at the beginning of the page) in my struts-html elements. I don't want to hard-code as after time new elements can come in between & then i had to again set the tab-index for all of them.
I am getting the following error : The method setTabindex(String) in the type BaseHandlerTag is not applicable for the arguments (int)
I am doing this :
int i =1; //initialized at the beginning of the page. html:text property="aa" tabindex="<%=i++%>"