Re: iterate tag with nested collections?

2002-02-13 Thread mpopovits.rm

Yeah, that worked.
Thanks.
--- In [EMAIL PROTECTED], "MacKellar, Kimberly" <[EMAIL PROTECTED]> 
wrote:
> If I understand your structure correctly, something like the 
following
> should work
> 
>  property="report.Level1" >
> 
>
> 
>   
> Insured Name:   property="insuredName"/>
>
>  
> 
> 
> 
> Kim MacKellar
> 
> 
> -Original Message-
> From: Michelle Popovits [mailto:Michelle.Popovits@w...]
> Sent: Tuesday, February 12, 2002 3:31 PM
> To: Struts-User@Jakarta. Apache. Org (E-mail)
> Subject: iterate tag with nested collections?
> 
> 
> Hi,
> 
> I am trying to add a multi-level report to a struts application.
> So the report structure will be like this:
> 
> Top Level Details
> Level 1 Details .
>Level 2 Details..
>Level 2 Details..
>Level 2 Details..
>Level 2 Details..
> Level 1 Details .
>Level 2 Details..
>Level 2 Details..
> Level 1 Details .
>Level 2 Details..
>Level 2 Details..
>Level 2 Details..
>Level 2 Details..
> Level 1 Details .
>Level 2 Details..
>Level 2 Details..
> 
> 
> I have set up my Value objects like so:
> 
> ReportVo (top level)
> inside the ReportVo I have a collection of Level1Vo value objects
> inside each instance of Level1Vo I have a collection of Level2Vo 
value
> objects. 
> 
> This info is passed into my struts jsp page.
> I am able to show attributes in the top level (ReportVo) and the 
1st level
> (Level1Vo) value objects just fine.
> My problem now is to get the Level2Vo value object attributes to 
show up.
> 
> 
> Here's a hacked sample of the jsp.  What I am trying to figure out 
is how to
> get the nested iterate tag to work.  Each Level1 value object 
contains a
> collection of Level 2 objects.
> 
> 
>  name="newBusinessActivityForm"
> 
type="com.worldinsure.admintool.report.struts.NewBusinessActivityForm"
  > 
> 
> Top Level:
> Total Number of Submitted Applications:   name="newBusinessActivityForm" property="report.submittedCount"  />
> Total Face Amount:  property="report.faceAmtTotal"  />
> 
> 
> 1st Level
> 
>  property="report.Level1" >
> 
>
> 
>property="report.Level1.Level2" >
> Insured Name:   property="insuredName"/>
>
>  
>  
> 
> 
> 
> Any thoughts on if this could work using struts tags or do I need 
to resort
> to java code?
> 
> Thanks,
> Michelle
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@j...>
> For additional commands, e-mail:
> <mailto:struts-user-help@j...>
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@j...>
> For additional commands, e-mail: <mailto:struts-user-help@j...>


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




Re: iterate tag with nested collections?

2002-02-12 Thread Arron Bates

You can get the basic iterate tag to "view" the data, but it wont update 
within a form.

Go here...
http://www.keyboardmonkey.com/struts

...there's a turorial and examples that will take you through the system 
and get you nesting lists in no time.
The tags this page is on about is in the Struts nightly build, so it 
will be in the next release of struts.
100's of people use it for just this problem (it's also the main reason 
why it was made!).

Arron.

MacKellar, Kimberly wrote:

>If I understand your structure correctly, something like the following
>should work
>
>property="report.Level1" >
>
>   
>
>  
>Insured Name:  property="insuredName"/>
>   
> 
>
>
>
>Kim MacKellar
>
>
>-Original Message-
>From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 12, 2002 3:31 PM
>To: Struts-User@Jakarta. Apache. Org (E-mail)
>Subject: iterate tag with nested collections?
>
>
>Hi,
>
>I am trying to add a multi-level report to a struts application.
>So the report structure will be like this:
>
>Top Level Details
>Level 1 Details .
>   Level 2 Details..
>   Level 2 Details..
>   Level 2 Details..
>   Level 2 Details..
>Level 1 Details .
>   Level 2 Details..
>   Level 2 Details..
>Level 1 Details .
>   Level 2 Details..
>   Level 2 Details..
>   Level 2 Details..
>   Level 2 Details..
>Level 1 Details .
>   Level 2 Details..
>   Level 2 Details..
>
>
>I have set up my Value objects like so:
>
>ReportVo (top level)
>inside the ReportVo I have a collection of Level1Vo value objects
>inside each instance of Level1Vo I have a collection of Level2Vo value
>objects. 
>
>This info is passed into my struts jsp page.
>I am able to show attributes in the top level (ReportVo) and the 1st level
>(Level1Vo) value objects just fine.
>My problem now is to get the Level2Vo value object attributes to show up.
>
>
>Here's a hacked sample of the jsp.  What I am trying to figure out is how to
>get the nested iterate tag to work.  Each Level1 value object contains a
>collection of Level 2 objects.
>
>
>name="newBusinessActivityForm"
>type="com.worldinsure.admintool.report.struts.NewBusinessActivityForm"  > 
>
>Top Level:
>Total Number of Submitted Applications:  name="newBusinessActivityForm" property="report.submittedCount"  />
>Total Face Amount: property="report.faceAmtTotal"  />
>
>
>1st Level
>
>property="report.Level1" >
>
>   
>
>  property="report.Level1.Level2" >
>Insured Name:  property="insuredName"/>
>   
> 
> 
>
>
>
>Any thoughts on if this could work using struts tags or do I need to resort
>to java code?
>
>Thanks,
>Michelle
>
>--
>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]>
>
>



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




RE: iterate tag with nested collections?

2002-02-12 Thread MacKellar, Kimberly

If I understand your structure correctly, something like the following
should work



   

  
Insured Name:  
   
 



Kim MacKellar


-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 3:31 PM
To: Struts-User@Jakarta. Apache. Org (E-mail)
Subject: iterate tag with nested collections?


Hi,

I am trying to add a multi-level report to a struts application.
So the report structure will be like this:

Top Level Details
Level 1 Details .
   Level 2 Details..
   Level 2 Details..
   Level 2 Details..
   Level 2 Details..
Level 1 Details .
   Level 2 Details..
   Level 2 Details..
Level 1 Details .
   Level 2 Details..
   Level 2 Details..
   Level 2 Details..
   Level 2 Details..
Level 1 Details .
   Level 2 Details..
   Level 2 Details..


I have set up my Value objects like so:

ReportVo (top level)
inside the ReportVo I have a collection of Level1Vo value objects
inside each instance of Level1Vo I have a collection of Level2Vo value
objects. 

This info is passed into my struts jsp page.
I am able to show attributes in the top level (ReportVo) and the 1st level
(Level1Vo) value objects just fine.
My problem now is to get the Level2Vo value object attributes to show up.


Here's a hacked sample of the jsp.  What I am trying to figure out is how to
get the nested iterate tag to work.  Each Level1 value object contains a
collection of Level 2 objects.


 

Top Level:
Total Number of Submitted Applications:  
Total Face Amount: 


1st Level



   

  
Insured Name:  
   
 
 



Any thoughts on if this could work using struts tags or do I need to resort
to java code?

Thanks,
Michelle

--
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]>




iterate tag with nested collections?

2002-02-12 Thread Michelle Popovits

Hi,

I am trying to add a multi-level report to a struts application.
So the report structure will be like this:

Top Level Details
Level 1 Details .
   Level 2 Details..
   Level 2 Details..
   Level 2 Details..
   Level 2 Details..
Level 1 Details .
   Level 2 Details..
   Level 2 Details..
Level 1 Details .
   Level 2 Details..
   Level 2 Details..
   Level 2 Details..
   Level 2 Details..
Level 1 Details .
   Level 2 Details..
   Level 2 Details..


I have set up my Value objects like so:

ReportVo (top level)
inside the ReportVo I have a collection of Level1Vo value objects
inside each instance of Level1Vo I have a collection of Level2Vo value
objects. 

This info is passed into my struts jsp page.
I am able to show attributes in the top level (ReportVo) and the 1st level
(Level1Vo) value objects just fine.
My problem now is to get the Level2Vo value object attributes to show up.


Here's a hacked sample of the jsp.  What I am trying to figure out is how to
get the nested iterate tag to work.  Each Level1 value object contains a
collection of Level 2 objects.


 

Top Level:
Total Number of Submitted Applications:  
Total Face Amount: 


1st Level



   

  
Insured Name:  
   
 
 



Any thoughts on if this could work using struts tags or do I need to resort
to java code?

Thanks,
Michelle

--
To unsubscribe, e-mail:   
For additional commands, e-mail: