I have code in my jsp like this. <html:select property="releaseName" onchange="setTask(this.form, 'Testing')"> <html ptionsCollection property="releases" label="releaseName" value="releaseName" /> </html:select> My java scrip sets the value for hidden field as 'Testing'. I am trying to use Constants to replace this. I tried like this and it is passing whole thing as string 'Constants.TASK_TESTING'. <html:select property="releaseName" onchange="setTask(this.form, 'Constants.TASK_TESTING')"> Thanks.
Quick! Before anybody notices! Cover it up with this tiny ad: