This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with <logic:iterate> and with onload function in javascript  RSS feed

Harsha Gedala
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem in using the logic iterate text field and the onblur java script function.

when i am using the logic iterate test field
<td>$ <html:text name="paymentRecoveryDetailsFVO" property="toBeRecovered" styleId="paymentRecoveryDetailsFVO" indexed="true"/></td>

when i am iterating the text field i have to load the values in the onload function including the values present in the second table where i have already used on load function.
But the problem is i have to load the function even with the text field present in the loop.

for eg: if the index of the loop is 4 then onload final value will be
Salvage : 14
DMV/Registration Refund (Total Loss) : 15
Out of Pocket RENTAL CAR: 16
Insured Deductable : 17
Total to be Recovered : 10+11+12+13+14+15+16+17 = 119
so finally i should get 119 as the answer.

I am using this code in jsp and using the following struts tags

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="" prefix="c" %>
<%@ taglib uri="" prefix="fmt" %>

thanks for the response in advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!