473,509 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

struts-javascript

1 New Member
Ciao a tutti, sono nuovo. Ho il problema di recuperare dei campi di struts che si trovano in un iterate indicizzati in una function javascript.

questo č il codice del mio iterate:

-------------------------------------------------------------------------------------
Expand|Select|Wrap|Line Numbers
  1. <% int i = 0; %>
  2. <logic:iterate id = "distribuzione" name = "PolivalenzaPdlcPersoneForm"         property="listaPlde" type="hse.tpi.vo.PdlcPdlePolivalenzeVO" indexId="ctr">
  3.  <tr>
  4.        <td style="display:none;">
  5.     <bean:write name = "distribuzione" property="distPolivalenzeId" />
  6.     </td>
  7.     <input type="hidden" name="distribuzione" property="distPolivalenzeId" indexed="true">
  8.     <td style="display:none;">
  9.     <bean:write name = "distribuzione" property="posizElemId" />
  10.     </td>
  11.     <input type="hidden" name="distribuzione" property="posizElemId" indexed="true">
  12.     <td style="display:none;">
  13.     <bean:write name = "distribuzione" property="personaId" />
  14.     </td>
  15.     <input type="hidden" name="distribuzione" property="personaId" indexed="true">
  16.     <td>
  17.     <bean:write name = "distribuzione" property="posizElemCod" />
  18.     </td>
  19.     <input type="hidden" name="distribuzione" property="posizElemCod" indexed="true">
  20.     <td>
  21.     <bean:write name = "distribuzione" property="posizElemDesc" />
  22.     </td>
  23.     <input type="hidden" name="distribuzione" property="posizElemDesc" indexed="true">
  24.     <td>
  25.     <bean:write name = "distribuzione" property="dataInizio" />
  26.     </td>
  27.     <input type="hidden" name="distribuzione" property="dataInizio" indexed="true">
  28.     <td>
  29.     <bean:write name = "distribuzione" property="dataFine" />
  30.     </td>
  31.     <input type="hidden" name="distribuzione" property="dataFine" indexed="true">
  32.     <logic:equal name="distribuzione" property="stato" value="C">
  33.     <td>
  34.         <bean:write name = "distribuzione" property="frequenzaPercPdle" />
  35.     </td>                    
  36.     <input type="hidden" name="distribuzione" property="frequenzaPercPdle" indexed="true">
  37.     </logic:equal>
  38.     <logic:equal name="distribuzione" property="stato" value="A">
  39.         <td >
  40.             <html:text name = "distribuzione" property="frequenzaPercPdle" maxlength="3" style=" text-align: right;" indexed="true"/>
  41.         </td>
  42.     </logic:equal>
  43.      </tr>
  44.       <% i++; %>
  45.        </logic:iterate>
  46.  
-------------------------------------------------------------------------------------


la mia function javascript č la seguente:

--------------------------------------------------------------
Expand|Select|Wrap|Line Numbers
  1. function confermaPolivalenza(count,form){    
  2.  
  3.     for(var x=0;x<count;x++){      
  4.         alert("frequenza="+(form.elements["distribuzione["+x+"].frequenzaPercPdle"]).value);
  5.     }    
  6.  
  7. }
  8.  
------------------------------------------------------------

vorrei soltanto capire come si riesce a prendere il valore all'indice 'x' dei miei campi property...

grazie
Nov 4 '08 #1
1 1509
acoder
16,027 Recognized Expert Moderator MVP
This is an English language forum. Please translate your post into English. See generally unacceptable things. Thanks.
Nov 4 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2516
by: Paul Symes | last post by:
Hi, I am trying to get Struts 1.1 to run under iPlanet 6.0 (SP4) without any success. When iPlanet attempts to initialise my web application, it raises a multitude of errors dependent on the...
2
3060
by: Eric Schultz | last post by:
Good afternoon... I'm new to struts so I hope I'm not asking an obvious question, but so far I haven't found my answer in any book, web site, or google search. I need to develop an application...
1
11867
by: Cedric | last post by:
Hello, I'm developping my first Struts application. I've got this error: Cannot find message resources under key org.apache.struts.action.MESSAGE web.xml <servlet>...
3
375
by: Sharon | last post by:
Hi guys , What is the apache struts equivalent in the .net world ? (if any ..) Thank you Sharon
0
2244
by: kisc71117 | last post by:
When accessing my JSP I get the following error: org.apache.jasper.JasperException: Missing message for key "button.add" my error message javax.servlet.ServletException: Missing message for key...
1
2776
by: nithiya sri | last post by:
i am new to struts.I try running struts application in Eclipse with the tomcat plug in .. it shows the following error:; please help me in this... SEVERE: Error loading WebappClassLoader ...
3
5386
by: shanmukhi | last post by:
hi all, i got a problem with struts. iam unable to find it. i have written an action class, form bean class and a jsp page on submitting form, request is going to action class but it is not...
1
14031
by: shrik | last post by:
hi everybody. I have following problem. There are two pages. index.jsp and main.jsp in my application Index.jsp contains logging interface in . It submits password and userid to loginform bean. ...
1
11504
by: NamelessNumberheadMan | last post by:
I can't seem to get Struts 2 validations to work. I have been converting from Strust 1 to Struts 2. So far I've refactored all the code (for this particular module) on the back end, rewrote the jsp...
12
77932
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7410
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.