Greetings,
I'm having a problem with setting server side values as a parameter to a javascript function that I am calling during an "onchange" event of an html:select that I have.
The line in my
jsp is something like this:
<html:select name="stList" property="attempt.attainmentLevel" onchange="javascript:trackChanges( <%=value%>
;" indexed='true'>
The problem with the above line is that when I view source code after my page is rendered is that the dynamic value is not replaced but I see the <%=value%> as it is!
Now as I was debugging, I replaced this with the regular <select> html tag.
<select name="stList" property="attempt.attainmentLevel" onchange="javascript:trackChanges( <%=value%>
;" indexed='true'>
In this case, I am able to see the processed server side value for <%=value%>.
It is important for me to use html:select and if I do that what do I have to do so that I can pass the dynamic server side value to my javascript function?
I hope I have been articulate enough to explain my problem - please let me know if you need further information.
(If this belongs to the JSP forums, then please let me know so that I can move it there.)
Thanks in advance
RS