The interesting thing is that you're not specifying a "name" attribute for
your select tag. Will the page compile correctly and render accurate
results? I would think you would have name="mySpeciality" as part of the
select tag. If you were using "mySpeciality" as the name value, then the
name if the select control would be mySpecialty[indexId].speciality.
Nick
|---------+---------------------------->
| | Srinivas Rao |
| | <[EMAIL PROTECTED]|
| | o.com> |
| | |
| | 06/10/2004 06:50 |
| | AM |
| | Please respond to|
| | "Struts Users |
| | Mailing List" |
| | |
|---------+---------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: Struts Users Mailing List <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: RE: How to Find Index Value
|
>------------------------------------------------------------------------------------------------------------------------------|
Hi Nick,
I am able to get the indexId Using IndexId Attribute in iterate tag but i
am asking How to find the particular select box name from Iteration
tag.....
For Example :::: Iterate tag contains 6 select list boxes and now i am find
out the particular select box name from the iterate tag.
How to find out select Box Name.................
Here is the code i am writing................
<nested:iterate name="createUserActionForm" property="mtSpecialities" id
="mtSpeciality" indexId="idx" >
<bean:define name="createUserActionForm" property="specialityList" id
="specialityList" />
<nested:select indexed="true" property="specialityid" tabindex="23" >
<html:options collection="specialityList" name="specialityList"
property="specialityid" labelProperty="displayname"/>
</nested:select>
</nested:iterate>
Here I am able to display the values from Iterate tag but i want to name of
the select box in the Iterate tag. How to find out the name ..
Please help me
Thanks
Srinivas
Nicholas L Mohler <[EMAIL PROTECTED]> wrote:
Not having any information about what you're trying to do, its hard to give
you an answer. I think that your answer will start with using the indexId
attribute on the the iterate tag. Where the answer goes from there depends
on what you're doing.
Nick
|---------+---------------------------->
| | Srinivas Rao |
| | | | o.com> |
| | |
| | 06/10/2004 05:37 |
| | AM |
| | Please respond to|
| | "Struts Users |
| | Mailing List" |
| | |
|---------+---------------------------->
>
------------------------------------------------------------------------------------------------------------------------------|
| |
| To: Struts Users Mailing List |
| cc: |
| Subject: RE: How to Find Index Value |
>
------------------------------------------------------------------------------------------------------------------------------|
Hi ,
I am able to get the index but i am asking How to find the particular
select box name from tag.....
For Example :::: Iterate tag contains 6 select list boxes and now i am find
out the particular select box from the iterate tag.
How to find out select Box .................
Thanks for replay to me
Srinivas
terry Highfield wrote:
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 speciality = request.getParameter("specialityid["+i+"]");
}
Hope this helps,
Terry
>From: Srinivas Rao
>Reply-To: "Struts Users Mailing List"
>To: Struts Users Mailing List
>Subject: How to Find Index Value
>Date: Thu, 10 Jun 2004 01:47:37 -0700 (PDT)
>
>Hi Friends,
>
>I am using tag. Here is the code i am writing....
>
>What my problem is, how to get the index of select list in the
> tag ...
>
>
>
> >id="mtSpeciality" >
> >id="specialityList" />
>
>
>
> >property="specialityid" labelProperty="displayname"/>
>
>
>
>
>
>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]
---------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]