I have not looked at this closely, but I notice there is no write in the
nested iterator. Can you say what happens with this when you run it?
At 01:06 AM 2/4/2004, you wrote:
Hi All,
I have a List collection (paymntTrnsctns) which contains an adminReceipts
objects. One of the properties of
I did put a bean:write in there and it still doesn't work.
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:35 PM
To: Struts Users Mailing List
Subject: Re: Logic Iterate - Cannot Create iterator for this collection
I have not looked
What happens?
At 01:36 AM 2/4/2004, you wrote:
I did put a bean:write in there and it still doesn't work.
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:35 PM
To: Struts Users Mailing List
Subject: Re: Logic Iterate - Cannot Create
What happens?
At 01:36 AM 2/4/2004, you wrote:
I did put a bean:write in there and it still doesn't work.
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:35 PM
To: Struts Users Mailing List
Subject: Re: Logic Iterate - Cannot Create
I am still getting Cannot Create Iterator for this collection error.
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:42 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
What
: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
Could you please give more details? Show me the stack trace or whatever
you are seeing.
At 01:44 AM 2/4/2004, you
trace in a second.
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
Could you please give more details? Show me the stack trace
=adminPaymentDetails/
/logic:iterate
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 6:14 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
If you do this where? You are not giving enough
(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator
You need to specify the name of the collection in the nested iterator
(the getter).
Add another parameter to the nested iterator line called property.
logic:iterate id=adminPaymentDetails name=adminReceipts
property=Property name of collection/
/logic:iterate
I'm having trouble
Oh, i see. Nope, it isn't. Its an object that should be in a collection! doh!!
Thanks very much Michael.
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 6:22 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create
List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
If you do this where? You are not giving enough information. Either give
it up or I have to retire. Thanks.
At 02:07 AM 2/4/2004, you wrote:
if I do a bean:write name=adminReceipts property=adminPaymentDetails/
I get
, December 01, 2003 12:24 PM
To: Struts Users Mailing List
Subject: RE: logic iterate
Are you talking about pagination? Show 3 on a page and then skip to the
next page? Sounds like you want the displaytag taglib. This examples does
10 items per page: http://www.displaytag.org/example-paging.jsp
-Original Message-
From: Naveen S. Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 2:02 AM
To: Struts Users Mailing List
Subject: RE: logic iterate
No, in the same page i have to display
tr
td value1/tdtd value2 /tdtd value3 /td
tr
for the next 3 values i should display
]
Sent: Monday, December 01, 2003 12:38 PM
To: Struts Users Mailing List
Subject: RE: logic iterate
Are you trying to do this to save space:
value1 value2 value3
value4 value5 value6
value7 value8 value9
Or this to show 3 properties of any one bean at a time:
bean1.value1 bean1.value2 bean1
Are you talking about pagination? Show 3 on a page and then skip to the
next page? Sounds like you want the displaytag taglib. This examples does
10 items per page: http://www.displaytag.org/example-paging.jsp
Regards,
David
-Original Message-
From: Naveen S. Kumar [mailto:[EMAIL
Look at the nested:iterate tag. Nice
http://jakarta.apache.org/struts/userGuide/struts-nested.html
-jeff
On Monday, November 24, 2003, at 09:44 AM, Raman wrote:
Logic Iterate problem:
Can we have nested logic iterates?
e.g. if I want to show list of products under all Categories. how can
Here is sample code snippet.
c:forEach var=item items='${itemList}'
c:choose
c:when test=${item.delinquent}
Display Red color
/c:when
c:otherwise
Display green color
/c:otherwise
/c:choose
/c:forEach
-Original Message-
From:
logic:iterate id=myBean name=MyBeans type=com.mine.bean.MyBean
...
logic:lessThan name=myBean property=taxOwed value=0
td bgcolor=red
/logic:lessThan
logic:greaterEqual name=myBean property=taxOwed value=0
td bgcolor=white
/logic:greaterEqual
...
/logic:iterate
You could also
logic:iterate name=taxHistoryArray id=source
type=org.gubba.TaxHistory indexId=i
tr align=center % if (history.isDelinquent) { % bgcolor=red % }
%
. other stuff in row
/tr
/logic:iterate
Maybe not as pretty as you want
Lukas
Srikanth Gubba [EMAIL PROTECTED] wrote in message
logic:iterate id=managers name=NewCategoryConfirm
property=categoryMangers
bean:write name=managers property=fieldname/
/logic:iterate
try this
-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:57 PM
To:
No, It does not work.
It says , Cannot find bean managers in any scope.
Thanks anywayz.
-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:55 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate
logic:iterate id=managers
may be ur collection may be empty or null
check ur collection object whether its contains anything??
-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate
No, It does not work
PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate
may be ur collection may be empty or null
check ur collection object whether its contains anything??
-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:09 PM
To: 'Struts Users
wrote:
No, It does not work.
It says , Cannot find bean managers in any scope.
Thanks anywayz.
-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:55 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate
logic:iterate id=managers name
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:15 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate
If it is collection of Strings only then you can write the collection on
page using
bean:write name=managers/ itself.
There is No need to provide property attribute. property
Probably check if you are setting the collection properly in the
formbean.
-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:31 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate
My Form Bean is configured properly
That's not overly general or anything
** Note the sarcasm **
What do you want to know?
-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts
Can some body some body
logic iterate
was very great
for looping collections
with no quelm
but now there's jstl
and forEach can take the helm
The Struts team
suggests with gleam
http://jakarta.apache.org/struts/userGuide/dev_logic.html
http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate
I want to iterate thru by bean and retrieve all values in JSP thru this
tag
Deepak
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts
That's
logic iterate
was very great
for looping collections
with no quelm
but now there's jstl
and forEach can take the helm
The Struts team
suggests with gleam
http://jakarta.apache.org/struts/userGuide/dev_logic.html
http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate
List
Subject: RE: Logic Iterate in Struts
I want to iterate thru by bean and retrieve all values in JSP thru this
tag
Deepak
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject
Subject: RE: Logic Iterate in Struts
Deepak,
Yesterday I posted a link containing source code on how to use the iterate
tag.
http://moosejaw.org/java/struts-iterate/
I hope it helps you.
Matt
-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2
It all depends on how you use the tag.
Show us how you tried to do this and what error was returned.
-Tim
-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 4:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts
I am having
]
Sent: Wednesday, July 09, 2003 3:16 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts
It all depends on how you use the tag.
Show us how you tried to do this and what error was returned.
-Tim
-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]
Sent: Wednesday
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts
logic:iterate id=details name=txndetails
...
/logic:iterate
java code was like
List list = some_business_layer_call to return a list
session.setAttribute(txndetails, list);
error is
cannot create iterator for collection
Mailing List'
Subject: RE: Logic Iterate in Struts
have you tried:
logic:iterate id=details collection=txndetails
...
/logic:iterate
?
Better yet.. why not just use JSTL?
c:forEach var=details items=${txndetails}
...
/c:forEach
-Tim
-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED
Mike wrote:
I am looking int the jstl stuff, I honestly just haven't used it yet,
sounds like the thing to do its just hard to get managers to agree to
let you use new stuff :(
It's easier to beg forgiveness than to ask permission. Anyway, how do you
evaluate new stuff if you have to get
Ignore this one,
It seems that Struts doesn't know to go into the Hashtable entry and just
get the value,
Very strange, but basically it was looking to cast the whole entry rather
than just the value.
Will have to convert it to use a list instead
STeve
-Original Message-
From: Steve
On Fri, 7 Mar 2003 10:31:08 +1100
Steve Vanspall [EMAIL PROTECTED] wrote:
Ignore this one,
It seems that Struts doesn't know to go into the Hashtable entry and
just get the value,
You can iterate through a map and display the keys and values just fine:
logic:iterate id=element
Yeah, I am trying to make input tags out of them
Thanks anywa
Steve
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 10:54 AM
To: Struts Users Mailing List
Subject: Re: logic iterate with nested class (I think that's the term)
On Fri, 7 Mar
Hi Deepak
I can't remember the exact syntax but the Struts docs on the web mention
that you get a key and value object when you iterate over a Map. So try:
logic:iterate id=reviewer name=revFormTeamVO property=reviewers
bean:write name=reviewer property=value.emp_name /
bean:write
IT WORKED
THANKS VERY VERY VERY MUCH
Deepank
- Original Message -
From: Jon.Ridgway [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, September 24, 2002 8:39 PM
Subject: RE: logic : iterate is driving me mad
Hi Deepak
I can't remember the exact
: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:35 PM
To: [EMAIL PROTECTED]
Subject: RE: Logic Iterate not finding my bean
You mean this one:
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
Nope, got that in there...
-Original Message-
From: Chris.Treglio
, July 02, 2002 8:45 AM
To: struts-user
Subject: RE: Logic Iterate not finding my bean
I don't know if this will solve your problem, but you're making a common
mistake. In the bean:write tag, the name attribute should be the same
as
the id attribute in the logic:iterate tag. So use name=refnum
PROTECTED]
Subject: RE: Logic Iterate not finding my bean
This was one of the many iterations I tried
logic:iterate id=bean name=rowset
type=org.apache.commons.beanutils.BasicDynaBean
Next element is bean:write name=bean property=refnum/
/logic:iterate
-Original Message-
From
I just got over a bout with this same error, and after a day of
tail-chasing and not a little profanity I realized that I had not defined
the logic taglib. That error was coming from the write tag, because the
iterate tag was being ignored entirely.
[EMAIL PROTECTED]
07/01/02 02:25 PM
You mean this one:
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
Nope, got that in there...
-Original Message-
From: Chris.Treglio [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:27 PM
To: struts-user
Subject: Re: Logic Iterate not finding my bean
I just got over
method is MVC compliant.
Please is there a solution ?
Thanks in advance,
Geoffrey...
- Original Message -
From: Charlesworth, Chico [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 08, 2001 4:54 PM
Subject: RE: Logic-Iterate not finding scope of Bean
you can also have two separate
Title: Logic-Iterate not finding scope of Bean
I would suggest keeping a hidden property on your
form that keeps the state that you are in (ie., 1stTimeQuery, or
useQueryResults)...
- Original Message -
From:
Luna, Kat
To: [EMAIL PROTECTED]
Sent: Thursday, June 07,
you can also have two separate action classes that use the same form, where
you use the first action class when you first go into that page, then use
the second when you are submitting or whatever in the form
-Original Message-
From: Luna, Kat [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
Shane
This is how you do it:
logic:iterate id=eachBean name=yourBeanObject property=beanList
TR
TDbean:write name=eachBean property=name//TD
/TR
/logic:iterate
In the above case in yourBeanObject class you will have the method getBeanList() which
will return a list of your beans. And in
have u
put that object into the session, before u get to the form
session.setAttribute("tabTest",
VectorObject);
-Original Message-From: Sylvain FAGNENT
[mailto:[EMAIL PROTECTED]]Sent: Thursday, May 10, 2001 2:57
PMTo: [EMAIL PROTECTED]Subject: Logic
iterate problems
Yes , we did ! :-(
- Original Message -
From:
Dudley Butt@i-Commerce
To: '[EMAIL PROTECTED]'
Sent: Thursday, May 10, 2001 3:04
PM
Subject: RE: Logic iterate problems
have
u put that object into the session, before u get to the
form
10, 2001 9:13
AMTo: [EMAIL PROTECTED]Subject: Re: Logic
iterate problems
Yes , we did ! :-(
- Original Message -
From:
Dudley Butt@i-Commerce
To: '[EMAIL PROTECTED]'
Sent: Thursday, May 10, 2001 3:04
PM
Subject: RE: Logic iterate
I came across a similar problem not so long ago. What I'd done wrong was try
and access properties outside the html:form tags.
Moving my tag calls inside the form tags fixed my problem at the time, but I
don't know if this applies in your case. It's worth double checking
none-the-less.
Regards
an "
error.
Thanks Sylvain !
- Original Message -----
From:
Nanduri, Amarnath
To: '[EMAIL PROTECTED]'
Sent: Thursday, May 10, 2001 3:17
PM
Subject: RE: Logic iterate problems
Maybe use need to use the jsp:useBean name="tabTest"
class=&quo
I tried to encapsulate all my tags with
html:form action=realAction
..
/html:form
But it still doesn't work !
- Original Message -
From: Firmin David [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 10, 2001 3:22 PM
Subject: RE: Logic iterate problems
I came across
In
your jsp page did you do an import on client ?
%@ page import = "beans.Client" %
-Original Message-From: Sylvain FAGNENT
[mailto:[EMAIL PROTECTED]]Sent: Thursday, May 10, 2001 9:33
AMTo: [EMAIL PROTECTED]Subject: Re: Logic
iterate problems
I t
In fact I use the full class name in the iterate
Tag !
- Original Message -
From:
Nanduri, Amarnath
To: '[EMAIL PROTECTED]'
Sent: Thursday, May 10, 2001 3:39
PM
Subject: RE: Logic iterate problems
In
your jsp page did you do an import on client
33
AMTo: [EMAIL PROTECTED]Subject: Re: Logic
iterate problems
I tried, here is the code in my action
:
tabTest= new
Vector();test = new
Client();test.setName("Tata
DUBAR");tabTest.add(test);test
= new
Client();test.setName("SFA");tabTest.add(test);
try this
logic:iterate id=tabTest name=tabTest scope=session type=Client
bean:write name=tabTest property=name/
/logic:iterate
-Original Message-
From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 3:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Logic iterate
, but no harm in trying, hey!
Regards
David
-Original Message-
From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2001 14:33
To: [EMAIL PROTECTED]
Subject: Re: Logic iterate problems
I tried, here is the code in my action :
tabTest= new Vector();
test = new Client
PM
Subject: RE: Logic iterate problems
try this
logic:iterate id=tabTest name=tabTest scope=session type=Client
bean:write name=tabTest property=name/
/logic:iterate
-Original Message-
From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 3:37 PM
: Re: Logic iterate problems
Doesn't work since we retrieve the following exception:
javax.servlet.jsp.JspException: No getter method for property choix of bean
tabTest
tabTest is a Vector!!
- Original Message -
From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent
:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 10:36 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic iterate problems
i'll send u some code that u can adapt for Vectors that we used quite
effectively with Arraylists, try it out...
we used like a wrapper class to put our collection object
I found the error, the logic tld was not
imported...
the logic tag was not parsed
stupid error isn't it ?? :-
- Original Message -
From:
Sylvain FAGNENT
To: [EMAIL PROTECTED]
Sent: Thursday, May 10, 2001 3:41
PM
Subject: Re: Logic iterate problems
67 matches
Mail list logo