omar al kababji wrote:you will discover what is going wrong if you open the page using the browser, and then take a look at the generated HTML source ;)
Balu Sadhasivam wrote:
It should work on seeing your generated source...Onchange event occurs after iteh textbox loses focus.. check it properly..
omar al kababji wrote:simple because you sould enclose the values you pass to the method with single quotations, in other words you should not pass the parameters as
Drawer .... but it should be... 'Drawer'
omar al kababji wrote:you could write it as follows:
onchange = 'javascript:calcBBSeries(${products});'
this is what it generates:
<td ><input type="text" name="perbox" size="5" value="0" onchange="javascript:calcBBSeries(${products});"></td>
omar al kababji wrote:
this is what it generates:
<td ><input type="text" name="perbox" size="5" value="0" onchange="javascript:calcBBSeries(${products});"></td>
it seems that you have EL disabled, however by default it should be enabled, may be you should add the EL needed jars to your class path. by the way try to avoid the use of expressions of type <%= %> in your JSP's, they are old school.
Bauke Scholtz wrote:To use EL in template text you need at least a JSP 2.0 compliant container and the web.xml needs at least to be declared as Servlet 2.4 (which implies the use of JSP 2.0). Otherwise you'll need the JSTL's c:out tag instead. Do not use scriptlets in any way. There is in fact no valid business reason to use scriptlets.
He's my best friend. Not yours. Mine. You can have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|