RE: Iterating List

2004-03-10 Thread Ramadoss Chinnakuzhandai
Tnx a lot for Daniel and Tommy

-Ramadoss

-Original Message-
From: Tommy Holm - TELMORE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 4:40 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: SV: Iterating List


The latter method would be the correct !
You could for clarity write the type of the id=myString which is the
object you access in every iteration and it would be required for other
custom objects
logic:iterate id=myString name=myform
property=ListofStringobjects  type=java.lang.String
   bean:write name=myString/
/logic:iterate

/Tommy
-Oprindelig meddelelse-
Fra: Daniel Henrique Alves Lima [mailto:[EMAIL PROTECTED] 
Sendt: 10. marts 2004 06:21
Til: Struts Users Mailing List
Emne: Re: Iterating List


How about this ?

logic:iterate id=myString name=myform
property=ListofStringobjects 
   bean:write name=myString/
/logic:iterate


Ramadoss Chinnakuzhandai wrote:

finally I got the following working..

logic:iterate id=list name=myform property=ListofStringobjects 

bean:define id=xyz name=list type=java.lang.String/ 
/logic:iterate

-Ramadoss
  




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


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


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



Re: Iterating List

2004-03-09 Thread Daniel Henrique Alves Lima
Try logic:iterate 
(http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate) 
and bean:write 
(http://jakarta.apache.org/struts/userGuide/struts-bean.html#write).

Look at mail archive 
(http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]). 

I think somebody has been sent a question like yours.

I hope this helps you...

Ramadoss Chinnakuzhandai wrote:

I need to iterate and display collection object List containing objects of type String in my JSP, I know that if the collection is of type Array I can index and get all the objects but  is there anyway I can iterate this List object and disply its String objects in my JSP(without having to convert the list to Array).

Thanks for your help

-Ramadoss

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



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


RE: Iterating List

2004-03-09 Thread Ramadoss Chinnakuzhandai
finally I got the following working..

logic:iterate id=list name=myform property=ListofStringobjects 
bean:define id=xyz name=list type=java.lang.String/
/logic:iterate

-Ramadoss

-Original Message-
From: Daniel Henrique Alves Lima [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 09, 2004 8:35 PM
To: Struts Users Mailing List
Subject: Re: Iterating List


Try logic:iterate 
(http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate) 
and bean:write 
(http://jakarta.apache.org/struts/userGuide/struts-bean.html#write).

Look at mail archive 
(http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]). 

I think somebody has been sent a question like yours.

I hope this helps you...

Ramadoss Chinnakuzhandai wrote:

I need to iterate and display collection object List containing objects of type 
String in my JSP, I know that if the collection is of type Array I can index and 
get all the objects but  is there anyway I can iterate this List object and disply 
its String objects in my JSP(without having to convert the list to Array).

Thanks for your help

-Ramadoss


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

  




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


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



Re: Iterating List

2004-03-09 Thread Daniel Henrique Alves Lima
How about this ?

logic:iterate id=myString name=myform property=ListofStringobjects 
  bean:write name=myString/
/logic:iterate
Ramadoss Chinnakuzhandai wrote:

finally I got the following working..

logic:iterate id=list name=myform property=ListofStringobjects 
bean:define id=xyz name=list type=java.lang.String/
/logic:iterate
-Ramadoss
 



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


Re: Iterating List of Lists

2003-10-31 Thread javen fang
Where is member tag from???

Your own taglib?

--- Choopong C. [EMAIL PROTECTED] wrote:
 Try like this
 
 table
 logic:iterate id=organization
 name=organizations
   member
   trtd
   bean:write name=organization
 property=title/
   logic:iterate id=item name=organization
 property=items
   member
   br/-bean:write name=item
 property=title/
   /member
   /logic:iterate
 
   /td/tr
   /member
 /logic:iterate
 /table
 
 
 From: Chris Gastin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Subject: Iterating List of Lists
 Date: Thu, 30 Oct 2003 21:55:53 -0600
 
 I have List of Lists of DataObjects. I want to
 iterate through that List of
 Lists to get access to the Data Object, where I
 will print the values of 
 the
 attributes on the data object. I have the outer
 loop working, but I don't
 understand how to get the Data out of the list in
 the inner loop.
 
 This is my latest attempt:
 
 logic:iterate id=list name=di3List
 scope=request
  logic:iterate id=data
 collection=list
  libean:write
 name=data property=word/ -
 bean:write name=data
 property=definition//li
  /logic:iterate
 /logic:iterate
 
 

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

_
 Protect your PC - get McAfee.com VirusScan Online 

http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Iterating List of Lists

2003-10-31 Thread Choopong C.
No matter what, just a sign for our debugging in Browser.


From: javen fang [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Iterating List of Lists
Date: Thu, 30 Oct 2003 23:03:35 -0800 (PST)
Where is member tag from???

Your own taglib?

--- Choopong C. [EMAIL PROTECTED] wrote:
 Try like this

 table
 logic:iterate id=organization
 name=organizations
member
trtd
bean:write name=organization
 property=title/
logic:iterate id=item name=organization
 property=items
member
br/-bean:write name=item
 property=title/
/member
/logic:iterate

/td/tr
/member
 /logic:iterate
 /table


 From: Chris Gastin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Subject: Iterating List of Lists
 Date: Thu, 30 Oct 2003 21:55:53 -0600
 
 I have List of Lists of DataObjects. I want to
 iterate through that List of
 Lists to get access to the Data Object, where I
 will print the values of
 the
 attributes on the data object. I have the outer
 loop working, but I don't
 understand how to get the Data out of the list in
 the inner loop.
 
 This is my latest attempt:
 
 logic:iterate id=list name=di3List
 scope=request
  logic:iterate id=data
 collection=list
  libean:write
 name=data property=word/ -
 bean:write name=data
 property=definition//li
  /logic:iterate
 /logic:iterate
 
 

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


_
 Protect your PC - get McAfee.com VirusScan Online

http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Re: Iterating List of Lists

2003-10-31 Thread Larry Meadors
Are you saying you use the member tag just so you can look at the html
and see that it is being output?

Larry

 [EMAIL PROTECTED] 10/31/03 1:34 AM 
No matter what, just a sign for our debugging in Browser.


From: javen fang [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Iterating List of Lists
Date: Thu, 30 Oct 2003 23:03:35 -0800 (PST)

Where is member tag from???

Your own taglib?

--- Choopong C. [EMAIL PROTECTED] wrote:
  Try like this
 
  table
  logic:iterate id=organization
  name=organizations
  member
  trtd
  bean:write name=organization
  property=title/
  logic:iterate id=item name=organization
  property=items
  member
  br/-bean:write name=item
  property=title/
  /member
  /logic:iterate
 
  /td/tr
  /member
  /logic:iterate
  /table
 
 
  From: Chris Gastin [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
  [EMAIL PROTECTED]
  To: Struts Users Mailing List
  [EMAIL PROTECTED]
  Subject: Iterating List of Lists
  Date: Thu, 30 Oct 2003 21:55:53 -0600
  
  I have List of Lists of DataObjects. I want to
  iterate through that List of
  Lists to get access to the Data Object, where I
  will print the values of
  the
  attributes on the data object. I have the outer
  loop working, but I don't
  understand how to get the Data out of the list in
  the inner loop.
  
  This is my latest attempt:
  
  logic:iterate id=list name=di3List
  scope=request
   logic:iterate id=data
  collection=list
   libean:write
  name=data property=word/ -
  bean:write name=data
  property=definition//li
   /logic:iterate
  /logic:iterate
  
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
_
  Protect your PC - get McAfee.com VirusScan Online
 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
 
-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



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



Re: Iterating List of Lists

2003-10-30 Thread Choopong C.



From: Chris Gastin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Iterating List of Lists
Date: Thu, 30 Oct 2003 21:55:53 -0600
I have List of Lists of DataObjects. I want to iterate through that List of
Lists to get access to the Data Object, where I will print the values of 
the
attributes on the data object. I have the outer loop working, but I don't
understand how to get the Data out of the list in the inner loop.

This is my latest attempt:

logic:iterate id=list name=di3List scope=request
logic:iterate id=data collection=list
libean:write name=data property=word/ -
bean:write name=data property=definition//li
/logic:iterate
/logic:iterate
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Re: Iterating List of Lists

2003-10-30 Thread Choopong C.
Try like this

table
logic:iterate id=organization name=organizations
member
trtd
bean:write name=organization property=title/
logic:iterate id=item name=organization property=items
member
br/-bean:write name=item 
property=title/
/member
/logic:iterate
/td/tr
/member
/logic:iterate
/table

From: Chris Gastin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Iterating List of Lists
Date: Thu, 30 Oct 2003 21:55:53 -0600
I have List of Lists of DataObjects. I want to iterate through that List of
Lists to get access to the Data Object, where I will print the values of 
the
attributes on the data object. I have the outer loop working, but I don't
understand how to get the Data out of the list in the inner loop.

This is my latest attempt:

logic:iterate id=list name=di3List scope=request
logic:iterate id=data collection=list
libean:write name=data property=word/ -
bean:write name=data property=definition//li
/logic:iterate
/logic:iterate
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: Iterating List of Lists

2003-10-30 Thread Chris Gastin
$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:536)


- Original Message - 
From: Choopong C. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 10:03 PM
Subject: Re: Iterating List of Lists


 Try like this

 table
 logic:iterate id=organization name=organizations
 member
 trtd
 bean:write name=organization property=title/
 logic:iterate id=item name=organization property=items
 member
 br/-bean:write name=item property=title/
 /member
 /logic:iterate

 /td/tr
 /member
 /logic:iterate
 /table


 From: Chris Gastin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Iterating List of Lists
 Date: Thu, 30 Oct 2003 21:55:53 -0600
 
 I have List of Lists of DataObjects. I want to iterate through that List
of
 Lists to get access to the Data Object, where I will print the values of
 the
 attributes on the data object. I have the outer loop working, but I don't
 understand how to get the Data out of the list in the inner loop.
 
 This is my latest attempt:
 
 logic:iterate id=list name=di3List scope=request
  logic:iterate id=data collection=list
  libean:write name=data property=word/ -
 bean:write name=data property=definition//li
  /logic:iterate
 /logic:iterate
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 Protect your PC - get McAfee.com VirusScan Online
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


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