How do I use nested collections with iterate tag

2001-12-31 Thread Prem Kumar Ponnuraj

Hi,

I have an ArrayList of ArrayList:

ArrayList objScreenDetailsContainer = new ArrayList();
ArrayList objRowDetails = new ArrayList();
objRowDetails.add(Hello1);
objRowDetails.add(Hello2);
objScreenDetailsContainer.add(objRowDetails);
objRowDetails = new ArrayList();
objRowDetails.add(World1);
objRowDetails.add(World2);
objScreenDetailsContainer.add(objRowDetails);


I have set the objScreenDetailsContainer object to the form bean.

Could you give an idea of how to get this collection from the form bean
to the iterate tag(I'm not setting that object in the request).

My display requirement is this :

table
tr
tdinput type=radio name=D1 value=the index of the
ArrayList/td
tdHello1/td
tdHello2/td
/tr
tr
tdinput type=radio name=D1 value=the index of the
ArrayList/td
tdWorld1/td
tdWorld2/td
/tr
/table


The problems faced are :
Not able to get the object from the bean (applcation scope)thru' iterate

tag.
Not able to get the indexId of the ArrayList and set it as value to the
radio.
Don't have idea of how to get the inner ArrayList and iterate.

the code for this will be of much help.We want to achieve this with tags

alone.We don't want to use scriptlets.

Rgds,

Prem





---
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.




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


Re: How do I use nested Collections with iterate tag?

2001-12-31 Thread Ted Husted

You might have a look at Arron's Nested Struts Extension

http://www.keyboardmonkey.com/struts/index.html


Prem Kumar Ponnuraj wrote:
 
 Hi,
 
 I have an ArrayList of ArrayList.
 /***
 ArrayList objScreenDetailsContainer = new ArrayList();
 ArrayList objRowDetails = new ArrayList();
 objRowDetails.add(Hello1);
 objRowDetails.add(Hello2);
 objScreenDetailsContainer.add(objRowDetails);
 objRowDetails = new ArrayList();
 objRowDetails.add(World1);
 objRowDetails.add(World2);
 objScreenDetailsContainer.add(objRowDetails);
 ***/
 
 I have set the objScreenDetailsContainer object to the form bean.
 
 Could you give an idea of how to get this collection from the form bean
 to the iterate tag(I'm not setting that object in the request).
 
 Also my display requirement is this :
 /***
 table
 tr
 tdinput type=radio name=D1 value=the index of the
 ArrayList/td
 tdHello1/td
 tdHello2/td
 /tr
 tr
 tdinput type=radio name=D1 value=the index of the
 ArrayList/td
 tdWorld1/td
 tdWorld2/td
 /tr
 /table
 ***/
 
 The problems faced are :
 Not able to get the object from the bean (applcation scope)thru' iterate
 tag.
 Not able to get the indexId of the ArrayList and set it as value to the
 radio.
 Don't have idea of how to get the inner ArrayList and iterate.
 
 the code for this will be of much help.We want to achieve this with tags
 alone.We
 don't want to use scriptlets.
 
 Rgds,
 
 Prem
 
   
Name: Wipro_Disclaimer.txt
Wipro_Disclaimer.txtType: Plain Text (text/plain)
Encoding: 7bit
 
   
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




How do I use nested Collections with iterate tag?

2001-12-28 Thread Prem Kumar Ponnuraj

Hi,

I have an ArrayList of ArrayList.
/***
ArrayList objScreenDetailsContainer = new ArrayList();
ArrayList objRowDetails = new ArrayList();
objRowDetails.add(Hello1);
objRowDetails.add(Hello2);
objScreenDetailsContainer.add(objRowDetails);
objRowDetails = new ArrayList();
objRowDetails.add(World1);
objRowDetails.add(World2);
objScreenDetailsContainer.add(objRowDetails);
***/

I have set the objScreenDetailsContainer object to the form bean.

Could you give an idea of how to get this collection from the form bean
to the iterate tag(I'm not setting that object in the request).

Also my display requirement is this :
/***
table
tr
tdinput type=radio name=D1 value=the index of the
ArrayList/td
tdHello1/td
tdHello2/td
/tr
tr
tdinput type=radio name=D1 value=the index of the
ArrayList/td
tdWorld1/td
tdWorld2/td
/tr
/table
***/

The problems faced are :
Not able to get the object from the bean (applcation scope)thru' iterate
tag.
Not able to get the indexId of the ArrayList and set it as value to the
radio.
Don't have idea of how to get the inner ArrayList and iterate.

the code for this will be of much help.We want to achieve this with tags
alone.We
don't want to use scriptlets.

Rgds,

Prem



---
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.




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