Hi Srinivas,

The way I solve this is to use the following code in the Action - but true I have only used indexed with buttons, the principle should be the same though.

for (int i=0; i<form.getMtSpecialities().size(); i++) {
     speciality = request.getParameter("specialityid["+i+"]");

}

Hope this helps,

Terry


From: Srinivas Rao <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: How to Find Index Value
Date: Thu, 10 Jun 2004 01:47:37 -0700 (PDT)

Hi Friends,

I am using <html:select> tag. Here is the code  i am writing....

What my problem is, how to get the index of select list in the <nested:iteate> tag ...



<nested:iterate name="createUserActionForm" property="mtSpecialities" id="mtSpeciality" >
<bean:define name="createUserActionForm" property="specialityList" id="specialityList" />



<nested:select indexed="true" property="specialityid" >
<html:options collection="specialityList" name="specialityList" property="specialityid" labelProperty="displayname"/>
</nested:select>



</nested:iterate>

I am able to getting the select lists but i am not getting the index of select lists.


Please Help me .. Thanks

Srinivas



---------------------------------
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

_________________________________________________________________ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to