I have a JavaBean Array in the session scope which I can loop through in a scriptlet
to output properties of each member of the array.
Example:
%
SearchResultBean[] c = (SearchResultBean[]) session.getAttribute(results);
for (int x = 0; x c.length; x++){
out.println(c[x].getTitle());
: Brian Hart [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 2:37 PM
To: [EMAIL PROTECTED]
Subject: Understanding the Iterate Tag
I have a JavaBean Array in the session scope which I can loop
through in a scriptlet to output properties of each member of
the array.
Example
: Friday, February 21, 2003 8:36 PM
Subject: Understanding the Iterate Tag
I have a JavaBean Array in the session scope which I can loop through in a
scriptlet to output properties of each member of the array.
Example:
%
SearchResultBean[] c = (SearchResultBean[]) session.getAttribute(results
: alexj [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 2:46 PM
To: Struts Users Mailing List
Subject: Re: Understanding the Iterate Tag
Hi here is the *translation* :
logic:iterate id=SearchResultBean name=results
bean:write name=results property=title/
bean:write name
be in the name= part not the
name of the results collection.
Alexandre Jaquet
- Original Message -
From: Brian Hart [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 8:36 PM
Subject: Understanding the Iterate Tag
I have a JavaBean Array in the session scope which I can
, February 21, 2003 8:36 PM
Subject: Understanding the Iterate Tag
I have a JavaBean Array in the session scope which I can loop through in a
scriptlet to output properties of each member of the array.
Example:
%
SearchResultBean[] c = (SearchResultBean[])
session.getAttribute(results
yep I think to :)
- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 8:47 PM
Subject: RE: Understanding the Iterate Tag
I think you may gotten the id and name reversed..
--
James Mitchell
:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 2:48 PM
To: Struts Users Mailing List
Subject: Re: Understanding the Iterate Tag
logic:iterate id=SearchResultBean name=results
bean:write name=SearchResultBean property=title/
bean:write name=SearchResultBean property=description
I ve better to didn't post when I drink my beers ;)
- Original Message -
From: alexj [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 8:49 PM
Subject: Re: Understanding the Iterate Tag
yep I think to :)
- Original Message
:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 2:52 PM
To: Struts Users Mailing List
Subject: Re: Understanding the Iterate Tag
I ve better to didn't post when I drink my beers ;)
- Original Message -
From: alexj [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL
:p
- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 8:54 PM
Subject: RE: Understanding the Iterate Tag
What? Why aren't you sharing ;)
--
James Mitchell
Software Engineer/Struts
Your Example still Failed. I received a no 'getter' method found for property
Description. As suggested I found the user guide and the logic below seems to be the
proper equilvalent syntax of the scriptlet loop sample. Does anyone else have further
insight on the appropriate way to return a
=Description/ will not.
-Tim
-Original Message-
From: Brian Hart [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 3:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Understanding the Iterate Tag
Your Example still Failed. I received a no 'getter' method found for
property Description
the Iterate Tag
Your Example still Failed. I received a no 'getter' method found for property
Description. As suggested I found the user guide and the logic below seems to be the
proper equilvalent syntax of the scriptlet loop sample. Does anyone else have further
insight on the appropriate
14 matches
Mail list logo