• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Java scriptlet strange problem

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know reason for not executing javascriptlet in javascript function? I am using struts 1.0
This code executes fine ---> value="<%=rprCode%>"

But InsertContent('<%=itrCount%>'); results in InsertContent('%=itrCount%');

itrCount has valid value and I am able to read it by assigning to hidden field as
<html:hidden name="formBean" property="rowKey" value="itrCount" />

Any thoughts?



In my code I have following javascriptlet

<td>
<html:select
name="formBean" property="rTypeArray" value="<%=rprCode%>" onchange="InsertContent('<%=itrCount%>');">
<html:options collection="REPAIRTYPES" property="key"
labelProperty="value" />
</html:select>

</td>


That results into

<td>

<select name="rTypeArray" onchange="InsertContent('%=itrCount%');">
<option value="1" selected="selected">N/A</option>
<option value="2">Pre-Repair</option>
<option value="3">Post-Repair</option>
</select>
</td>


Thanks,
 
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
your question is not clear . what error you get ?
 
Hey cool! They got a blimp! But I have a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic