On 11/8/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote:

Hi All,

I am unable to pass a java parameter to a javascript method. Can you
please tell whats going wrong. Here is my code:
<html:submit property="submitType" onclick="setFile('<%=
((FileInstance)nmeFile).getFileName() %>', this.form);" >


You got to do something like this
<html:submit property="submitType" onclick='<%="setFile(' +
((FileInstance)nmeFile).getFileName() + ",this.form);" %>'
Submit</html:submit>


regards,
Pankaj




--
Puneet

Reply via email to