hi, may be you can try removing the double quotes from the expression [<%=count%>]. bye
"Shoukat, Faisal" <[EMAIL PROTECTED]> wrote: Can anyone help with explaining to me how to get a scriptlet into a html:linl tag in the onclick event. For example: I have two forms of the same name in my jsp page. The way I am submitting the forms is to call the onclick event within the html:link tag as follows: paramName="app" paramProperty="appId" onclick='javascript:document.forms.applicationDetailsForm[0].submit();'>[Sub mit] However where I have this: document.forms.applicationDetailsForm[0].submit(); 0 could be anything up to 10. I am within a logic:iterate tag so have declared the indexId as index. The problem I am having is how do I get index into the square brackets of the document.forms.applicationDetailsForm[0].submit(); so what I want to say is document.forms.applicationDetailsForm[index].submit(); I have tried the following none of which work: document.forms.applicationDetailsForm[<%=index%>].submit(); document.forms.applicationDetailsForm[<%="index"%>].submit(); document.forms.applicationDetailsForm["<%=index%>"].submit(); I also tried assigning it to a scriplet variable and using this but it did not work. <% int count = index.intValue(); %> document.forms.applicationDetailsForm["<%=count%>"].submit(); Can anyone advise on how to get the index variable into the square brackets. Thanks --------------------------------- Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.