(
{
User[] users = new User[3];
users[0] = user1;
users[1] = user2;
...
request.setAttribute(users, Arrays.asList(users));
return mapping.findForward(something.jsp);
}
}
in the something.jsp
TABLE
logic:iterate id=userList name=?
TR
TD
??? users.getFirstName
Hi Michael,
You need:
logic:iterate name=users id=aUser
bean:write name=aUser property=firstName/
%-- etc --%
/logic:iterate
The name attr in logic:iterate must match the attribute name of the List.
Any BTW you're going to get really tired of writing Beans classes like
User. Many folks
Thanks for the responses.
This works:
logic:iterate id=trick name=MyForm property=list type=my.path.Club
TR
TD
html:text indexed=true name=trick property=data//p
/TD
/TR
/logic:iterate
note that you need a method: public Club getTrick(int index) in MyForm.
-rejin
Hi John,
I'm stil not able to figure it out.
I've put in the stack trace if you might want to take a look. Apart from
the logic:iterate tag, i'm using logic:equal, logic:notEqual,
logic:present.
/*** stack trace starts here **/
java.lang.ArrayIndexOutOfBoundsException
Looks to me like it's originating in EvermindJSPWriter, not from struts.
Shashikiran M wrote:
Hi John,
I'm stil not able to figure it out.
I've put in the stack trace if you might want to take a look. Apart from
the logic:iterate tag, i'm using logic:equal, logic:notEqual,
logic:present
, September 03, 2002 12:08 AM
To: Struts Users Mailing List
Subject: Re: ArrayIndexOutOfBoundsException while using logic:iterate
Looks to me like it's originating in EvermindJSPWriter, not from struts.
Shashikiran M wrote:
Hi John,
I'm stil not able to figure it out.
I've put in the stack trace
Hi All,
Has any one faced with ArrayIndexOutOfBoundsException while using
nested logic:iterate tags?
Presently my implementation is as follows:
logic:iterate id=ambiguityDet name=OrderEntryFormBean
property=ambiguityList
type=com.tycoelectronics.usosp.order.util.AmbiguityDetail
Hi Shashi,
Where does the page generation stop? I don't think logic:iterate itself
will walk off the end of a list (and even if it did that would throw
IndexOutOfBounds, not ArrayIndexOutOfBounds). It might be thrown from
some other code.
John
Shashikiran M wrote:
Hi All,
Has any one
hello all,
is there any way to get the current loop number (or index) of a an iterate tag?
i have the following code:
logic:iterate id=fields name=report property=fields
a href=sort.do?sortIndex=I.Want.The.Current.Index.Of.Iteration.Herebean:write
name=fields//a
/logic:iterate
do i need
-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 2:46 PM
To: [EMAIL PROTECTED]
Subject: logic:iterate question (index available?)
hello all,
is there any way to get the current loop number (or index) of
a an iterate tag?
i have
Thanks for the sample code, Maris.
I could make some headway, but still can't get the setters to work. Here is
the snippet:
logic:iterate id=b name=MyForm property=list type=my.path.Club
TRTD
html:text indexed=true name=b property=data//p
/TD/TR
/logic:iterate
'list' is a vector.
'Club' has
Hello All,
I am using logic:iterate like as follows :
bean:define id=summList
name=partSummaryForm
property=summary
type=java.util.Collection/
logic:iterate id=summ
name=summList
A name
To have the setters work in a logic:iterate, you should use the nested
taglib (keyboardmonkey.com/struts if I'm not mistaken)
tomK
Rejin NS wrote:
Thanks for the sample code, Maris.
I could make some headway, but still can't get the setters to work. Here is
the snippet:
logic:iterate id=b
?
Thanks.
Kwang-Shi Shu
(732) 537-6862
=
-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 3:39 PM
To: Struts Users Mailing List
Subject: Re: html:text in logic:iterate
, August 28, 2002 11:58 PM
Subject: Help - Logic:iterate!!!
Hello All,
I am using logic:iterate like as follows :
bean:define id=summList
name=partSummaryForm
property=summary
type=java.util.Collection/
logic:iterate id=summ
name=summList
A name='bean:write name=summ
align=right class=fieldCaptionGroup(s):/td
td
logic:iterate id=group name=userInfo property=groupDescs
bean:write name=group /
/logic:iterate
/td
/tr
/table
Form
public class UserInfoForm extends ActionForm {
private String userName;
private
Hello,
I need text boxes in one column of a table. The number of rows may vary.
Hope you can point me to a resource / sample code.
Thanks,
Rejin.
Here you got sample code:
Zurnals4Buvniecibas is form class, it has property saraksts which contains a vector
with objects of Zurnals4CommonView.
Zurnals4CommonView has properties jaiesniedzAtskaite, jaiesniedzDatums and so on
...
Maris
logic:iterate id=element name
I could use a concise description of the alternatives and details of setting
up my Actions, ActionForm, and JSP pages so I can have a logic:iterate
wrapping a set of html:multibox elements, and so the set options can be
communicated back and forth effectively. I could also use any pointers
[]){
this.tempsud = tempsud;
}
public String[] getTempsud(){
return this.tempsud;
}
-
and in my JSP
I have the following code.
logic:iterate id=SampleRowForm name=SampleRowForm property=tempsud
trtd
%=Sudhir%
bean:write name=SampleRowForm
According to Sudhir S. Shetty [EMAIL PROTECTED]:
private String [] tempsud =
public void setTempsud(String tempsud[]){
this.tempsud = tempsud;
}
public String[] getTempsud(){
return this.tempsud;
}
-
logic:iterate
Try this
logic:iterate id=tempStr name=SampleRowForm property=tempsud
.
bean:write name=tempStr/
.
In your example you named indexed attribute is same as the name of the bean
containing the array you are iterating through which probably confused you.
In the iterate tag you
Users Mailing List
Subject: Problem with logic:iterate
Hi ,
Im having some problems with logic Iterate,
I have a Form Bean SampleRowForm.java in which I define a String []
---
private String [] tempsud =
{Sudhir,Shetty,Ramesh,K,'Doug,Wong,Aloke,Thimi,InveniTech,
Powershare
Consider the following scenario:
My Action class adds a Facility object to the request and forwards to a
JSP for presentation. The Facility object contains an array of
PhoneNumber objects.
My question is: Using struts tags, is it possible to pull the
PhoneNumber[] array out of the Facility
Hey,
It's not a problem to pull a list out of an object. My code is:
logic:iterate id=hw name=currentData property=hwList
type=com.moog.us.rur.data.Hardware
This means that my app locates the object called currentData, and iterates
through an ArrayList within it (which is the hwList
methods.
The beauty of this is that you can go any number of levels deep.
Sri
-Original Message-
From: Aiken, Weston - Raleigh, NC [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:40 AM
To: [EMAIL PROTECTED]
Subject: logic:iterate question
Consider the following scenario:
My
Keith
Perfect, thanks a bunch.
Weston
-Original Message-
From: [EMAIL PROTECTED]
at INTERNET
Sent: Friday, August 09, 2002 12:08 PM
To: Aiken, Weston - Raleigh, NC; [EMAIL PROTECTED] at
INTERNET
Subject: RE: logic:iterate question
Hey,
It's not a problem to pull a list out
Hi,
I wrote a specialized iterate tag to display summary pages (reports). It
iterates over a collection which has array of String (columns) for each row
(record). This was done in pre 1.0. The benefit is that all summaries can
use this tag and I have code like
Vector list = new Vector();
while
Subject: Re: CachedRowset with logic:iterate tag
From: David Chu [EMAIL PROTECTED]
===
Hi,
When first using struts, I first tried to use a CachedRowSet object as well.
However, based on other people's recommendations, I just went with a simple
Vector of Beans, one representing each row
Subject: Re: CachedRowset with logic:iterate tag
From: Vic C. [EMAIL PROTECTED]
===
I have extendend and made cached row set work with the iterator. See
webPIM on sourceforge, basebeans.com or downloads.com
David Chu wrote:
Hi,
When first using struts, I first tried to use a CachedRowSet
to the JSTL friendly Result class.
-Chad Johnson
- Original Message -
From: aps olute [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 17, 2002 6:19 PM
Subject: CachedRowset with logic:iterate tag
How to iterate over a CachedRowSet using
logic:iterate tags? I have filled
Ok from what I gather from the responses, it is not
necessary to use Struts Tags to iterate the contents
of the CachedRowSet. However I would still like how
to do this. I've looked at webPIM, and were not able
to download as there are no jar files or zip files
package I saw at sourceforge.net,
this issue, by overriding logic:iterate, and allowing the tag
to load offset from a request parameter, previously to the parameter defined
in the tag in the JSP. Now, by sending the query to the same JSP and
appending a parameter offset in the query string, we can scroll, since tag
gives preference
this issue, by overriding logic:iterate, and allowing the tag
to load offset from a request parameter, previously to the parameter defined
in the tag in the JSP. Now, by sending the query to the same JSP and
appending a parameter offset in the query string, we can scroll, since tag
gives preference
Adolfo,
You could also try the pager taglib available at
http://jsptags.com/tags/navigation/pager/
Works well with logic:iterate.
Just a thought!
Malc
-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
Sent: 17 July 2002 11:31
To: [EMAIL PROTECTED]
Subject
How to iterate over a CachedRowSet using
logic:iterate tags? I have filled the CachedRowset
with a select
statement and am able to iterate using the
crs.getString(1) or the crs.getString(colname)
methods,
but no am ready to use Struts tags but dont know how.
Do I need to convert it a Collection
Did anyone come across the problem of iterating over multiple collection
objects in logic:iterate? The tag works fine if we have a single
collection. But I am not getting it to work with multiple collections. I
want to know if anyone has done the above using the logic:iterate tags?
-Ravi
Thanks
Why do logic:iterate only show me the last item of my collection?
===
Here is my code:
logic:iterate id=item collection=%=
WorkspaceHelper.getUserWorkspaces( pageContext ) %/
tr
td colspan=2
a href
I think you must remove the / from the first tag of logic:iterate.
Actually you are doing:
logic:iterate/
/logic:iterate/
and should be
logic:iterate
/logic:iterate
Hope that makes the trick,
Adolfo
From: Herve Tchepannou [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL
thanx...
thats was a silly mistake. It works now :-)
-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: Re: logic:iterate never iterate through all the items
I think you must remove the / from
Hi,
Can someone help me to iterate over multiple collections using
logic:iterate tags. It is taking as nested loop if I place the the tag
one after the other.
Thanks Regards,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M)
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
://www.buffalo.edu/~kkamholz
-Original Message-
From: Zayed [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 1:51 AM
To: Struts Users Mailing List
Subject: Re: logic:iterate populating with multiple String[]
Hi,
Has enyone got answer for this?
thanks,
Zayed
[EMAIL PROTECTED] wrote
:51 AM
To: Struts Users Mailing List
Subject: Re: logic:iterate populating with multiple String[]
Hi,
Has enyone got answer for this?
thanks,
Zayed
[EMAIL PROTECTED] wrote:
Hi Keith,
Thanks for your reply.
The Problem I am facing is regarding the use of logic:iterate and
bean:write
Hi,
Has enyone got answer for this?
thanks,
Zayed
[EMAIL PROTECTED] wrote:
Hi Keith,
Thanks for your reply.
The Problem I am facing is regarding the use of logic:iterate and
bean:write tags
Let me restate my problem
I am developing a WEB-UI for a third party Java Application
kinda
new to all this, so if I'm wrong about anything, someone please correct me.
I hope this helps.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Zayed [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 9:39 AM
To: Struts Users Mailing List
Subject: logic:iterate
Hi Keith,
Thanks for your reply.
The Problem I am facing is regarding the use of logic:iterate and
bean:write tags
Let me restate my problem
I am developing a WEB-UI for a third party Java Application Therefore I
don't have control over the object/s returned.
I get two String arrays
: html:Checkbox tag in Logic:iterate does not work
Hi everyone,
I have an html:checkbox in logic:iterate and I would like to know
what row the user checked after I submit the form.
My Form has an ArrayList of Objects.
My action reads the arraylist and check to see witch item is selected.
My jsp
I have a strange problem with the logic:iterate tag. I have used this
tag numerous numerous times (not in this context however) and have
never seen this type of problem.
First, I will explain the symptoms:
Say my page is laid out in five sections: A, B, C, D, E and a
logic:iterate tag
The problem seems to be involved in output buffer.
Try flushing the buffer :
jsp:include page=... flush=true/
From: Jeremy Haile [EMAIL PROTECTED]
Subject: logic:iterate problem with jsp:include tags
Date: Tue, 2 Jul 2002 19:20:47 +
I have a strange problem with the logic:iterate tag
Ok, you just made me realize my dumb mistake. Thanks for the help!
~ Keith
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 8:42 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate id?
Seems that you're trying to write out
When you use the logic:iterate tag, do you have to define the id that
stores the result of the iteration before the tag?
My code is:
logic:present name=entries property=mcEntries
logic:iterate id=mc name=entries property=mcEntries
type=com.moog.us.eos.beans.MCentry
bean:write name
Seems that you're trying to write out a property instead of the bean.
Try this...
logic:iterate id=mc name=entries property=mcEntries
type=com.moog,us.eos.beans.MCEntry
bean:write name=mc property=oldDept /
bean:write name=mc property=oldMatch /
bean:write name=mc property=newDept
Hello all,
I've got a situation with a forward back to the same page with more
information and the data is in the ActionForm object but doesn't seem to
display. Here is a snippet of the code for the logic:iterate tag:
jsp:useBean id=oBondApp scope=session
class
Subject: AccessControlException (accessDeclaredMembers) when trying to logic:iterate
over a HashMap
From: Stefan Lesser [EMAIL PROTECTED]
===
Hi!
I absolutely have no idea what could be wrong. It's all coded as defined in
the tag lib docs.
in my jsp:
logic:iterate id=current name
Hi All,
I have an existing application that uses the logic:iterate
tag to display a table of editable/deletable elements
based on a collection of beans. I have been tasked with
adding checkboxes to each row so that multiple selections
can be made and operated on (e.g. delete multiple elements
the above site has the jar of just the tags.
Arron.
Dan Rasmussen wrote:
Hi All,
I have an existing application that uses the logic:iterate
tag to display a table of editable/deletable elements
based on a collection of beans. I have been tasked with
adding checkboxes to each row so that multiple
Thanks vic. i really appreciate.
thanks
From: Vic Cekvenich [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Help on logic:iterate
Date: Fri, 24 May 2002 17:08:06 -0700
Oh, oh.:
And if you use html:text
of
histLstForm bean? because it it calls getter funtion on question
property it will give one value, so how does it know there are multiple
values?
Following code is from vic's DB sample.
logic:iterate id=i name=histLstForm
trtd
bean:write name=histLstForm property=question//tdtd
bean:write name
, so how does it know there are
multiple values?
Following code is from vic's DB sample.
logic:iterate id=i name=histLstForm
trtd
bean:write name=histLstForm property=question//tdtd
bean:write name=histLstForm property=ans//tdtd
bean:write name=histLstForm property=dateCont//tdtd
bean:write
.
logic:iterate id=i name=histLstForm
trtd
bean:write name=histLstForm property=question//tdtd
bean:write name=histLstForm property=ans//tdtd
bean:write name=histLstForm property=dateCont//tdtd
bean:write name=histLstForm property=typ//tdtd
bean:write name=histLstForm property=cost//td
/tr
to be told they're indexed
with indexed=true
For Example...
logic:iterate id=rowBean name=histLstForm property=myListProperty
tr
tdbean:write name=rowBean property=question indexed=true//td
tdbean:write name=rowBean property=ans indexed=true//td
tdbean:write name=rowBean property
All -
I am in the process of cleaning up my code to eliminate warning messages,
and I am stuck on this one. I am using a logic:iterate to display a bean and
I get this message in conjunction with it:
JavaCompile: The local variable 'results' is never used.
Here is a snippet containing
Title: problem with logic:iterate while displaying an array of beans.
Hi All,
I am facing a problem displaying a table using logic:iterate tag.
I am using two separate beans in my jsp for displaying different values.
The logic:iterate loop works absolutely fine if I pass just a bean
problem with logic:iterate while displaying an array of beans.keerthi first thing is
ur attached too many files , where people dosnt have enought time to go through it .
if it is related to displaying dynamic values here i am attaching a sample jsp and a
bean method just go thought it
jsp
Title: Message
Hi
if u have an array of beans inside an another bean. I'd suggest you use
the nested tags apporach instead of logic:iterate.
For info on nested you can check up the tutorial at http://www.keyboardmonkey.com/struts/primer/Tutorial_partOne.html
.
Hope it helps!
-Original
I have the following in the file lists.jsp:
logic:iterate name=analysisWizardForm property=analysisCriteria
id=criteria
lists.jsp is included in chooselist.jsp with:
%@ include file=/jsp/analysiswizard/inc/lists.jsp %
JBuilder6 refuses to build this jsp with the following message
20, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: JBuilder6 bug or am I doing something wrong with logic:iterate?
I have the following in the file lists.jsp:
logic:iterate name=analysisWizardForm property=analysisCriteria
id=criteria
lists.jsp is included in chooselist.jsp with:
%@ include file
Never mind, it was actually complaining about my closing tag, which was
logic:iterate/ instead of /logic:iterate
-Original Message-
From: Dennis Doubleday [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: JBuilder6 bug or am I doing
Hello,
I need to display an unknown number of input fields to the user within a
logic:iterate tag.
The field corresponds to a form property 'comment', say.
So in the corresponding Struts form I will need to have a getter and setter
that sets and gets a String AND a Collection like so:
public
of VisiBroker?...
Arron.
Struts Newsgroup (@Basebeans.com) wrote:
Subject: logic:iterate with EJB's, casting problem?
From: Nicolas Parisé [EMAIL PROTECTED]
===
Hi!
I have a problems, for displaying a collection of object retrieved
from a EJB (1.1).
In my action class, I retrieve a collection
PROTECTED]
Subject: logic:iterate with EJB's, casting problem?
Subject: logic:iterate with EJB's, casting problem?
From: Nicolas Parise [EMAIL PROTECTED]
===
Hi!
I have a problems, for displaying a collection of object retrieved
from a EJB (1.1).
In my action class, I retrieve a collection
Subject: logic:iterate with EJB's, casting problem?
From: Nicolas Parisé [EMAIL PROTECTED]
===
Hi!
I have a problems, for displaying a collection of object retrieved
from a EJB (1.1).
In my action class, I retrieve a collection of Artists objects from
a Session EJB:
Collection coll
: 10 May 2002 05:46:59 -
From: K Br [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Puzzling error with logic:iterate
pl help. i have been wracking my small brain over this
for a few hours and i have no clew.
i am using logic:iterate copybook style; yet, it throws the runtime exception
Have you tried adding the following attribute and value to the iterate
tag?...
scope=page
Arron.
K Br wrote:
pl help. i have been wracking my small brain over this
for a few hours and i have no clew.
i am using logic:iterate copybook style; yet, it throws the runtime exception
[EMAIL PROTECTED]
Date: Thu, 9 May 2002 23:19:48 -0700
From: Ajay Chitre [EMAIL PROTECTED]
Subject: RE: Puzzling error with logic:iterate
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
I think you are missing a jsp:useBean
Not sure if this will help but try this out
pl help. i have been wracking my small brain over this
for a few hours and i have no clew.
i am using logic:iterate copybook style; yet, it throws the runtime exception:
javax.servlet.ServletException: Cannot find bean currBook in scope null
the iterate statement is:
logic:iterate id
Vehiclepark is a Bean with the property cars (cars is a collection of a
Car).
Car is a bean with the properties id and vehicleparkId
hier ist my jsp-code
logic:iterate name=Vehiclepark property=cars id=Car html:hidden
name=Car property=id indexed=true/ html:select name=Car
property
Hi,
I want create a screen whose rows will be dynamically
generated and each row contains text boxes and select
boxes. I am facing problem in writing the property
attribute for select box within the logic:iterate.
Could someone tell me where I can get help from?
Thanks in advance,
Raghu
]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: Select box in logic:iterate
Hi,
I want create a screen whose rows will be dynamically
generated and each row contains text boxes and select
boxes. I am facing problem in writing the property
attribute for select box within the logic:iterate.
Could
logic:iterate id='element'
name='attribute'
scope='page' type='java.lang.String' indexId='index'
bean:write name='MAP_STATE_KEY'
property='mapController.dataConnection.attributeNames[%= index %]'
scope='session'/
Correct your bean:write tag
[mailto:[EMAIL PROTECTED]]
Sent: 25. april 2002 14:36
To: [EMAIL PROTECTED]
Subject: logic:iterate question
Hello all,
I've got a question about the logic:iterate tag. I'm trying to
reference a bean which returns a String[] but I only want one of the
values in the array. The indexID is working
Subject: converting logic:iterate to nested:iterate
From: Matt Raible [EMAIL PROTECTED]
===
How would I convert the following to use the nested tags:
logic:iterate id=topic name=courseForm property=topics
Topic Name: bean:write name=topic property=name/br/
/logic:iterate
I want to do
--- Struts Newsgroup [EMAIL PROTECTED] wrote:
Subject: converting logic:iterate to nested:iterate
From: Matt Raible [EMAIL PROTECTED]
===
How would I convert the following to use the nested
tags:
logic:iterate id=topic name=courseForm
property=topics
Topic Name: bean:write name=topic
something like this?
logic:iterate name=DisplayJobBriefForm property=skillList id=list
type=JobBriefSkillBean
tr
tdbean:write name=list property=name//td
%
if(list.getRequiredInd().equalsIgnoreCase(dgApplication.SKILL_IS_REQUIRED_AL
L_REQS))
out.println(td
That looks fine, except I don't really like having Java code in my JSP
pages, and I thought that that was what the logic:equal tag was
supposed to do.
Ric
On Friday, April 19, 2002, at 02:19 pm, Bill Page wrote:
something like this?
logic:iterate name=DisplayJobBriefForm property
Many thanks, changed the scope of my logic:equal tag and it works
perfectly.
Ric
On Friday, April 19, 2002, at 03:39 pm, Joachim Martin wrote:
Hi- I'm not on the Struts list, but I noticed your email on the archive.
The id defined by an iterate tag is _page_ scoped, you are looking for
this object into a Vector object
called Employees. And it worked.
Any idea why?
Thanks,
Jerome.
-Original Message-
From: David M. Karr [mailto:[EMAIL PROTECTED]]
Sent: 04 April 2002 18:01
To: [EMAIL PROTECTED]
Subject: Re: logic:iterate problem
Jerome
Hi,
My logic:iterate looks like this
logic:iterate id=searchEmpRes name=employeeSearchForm
property=lstEmployees
!-- line 1 --
tr height=18
td class=tblDataTextbean:write
name=searchEmpRes property=firstName
Hope this helps.
bean:define id=list name='localForm' property=myList scope=session/
logic:iterate id=myRow name=list
bean:write name=myRow property=myName/
/logic:iterate
Here in this example, 'myList' is a java.util.List kept as a attribute in
the ActionForm.
Cheers!,
-MS.
Abel
Hi,
I am using logic:iterate to display values from an arraylist of beans.
Is it possible to sort the output based on some bean property?
Thnx,
GB
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
As far as I know you have to sort the arraylist on the action class before
forward to JSP page.
logic:iterate is the View. You have to sort on the Model.
-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 3:42 PM
To: Struts Group (E-mail
I've created specific iterators (classes that implement iterator interface)
that do the sorting for you. So you can ask an object to give you an
iterator, or an orderedIterator, or a reverseIterator etc. You then refer
to this property from the logic:iterate tag.
Tim.
-Original Message
%
bean:message key=UserProfile.interests/
/th
td align=left width=50%
logic:iterate id=element name=interestsSet
html:multibox property=interestsbean:write
name=interest property=value//html:multibox
Hi,
is there anyway to set the color of a row from the bean being iterated?
My code is given below:
logic:iterate id=loan name=loans
type=com.mortgagehub.cba.business.LoanSummaryBean
tr
td align=left valign=middle colspan=1
font size=2 color=#00 face=Verdana
bean:write name=loan property
Bhaskar,
Try looking at
http://www.husted.com/struts/resources.htm#taglibs
from Amarda.
-Sanjay
--- Bhaskar Gopalan [EMAIL PROTECTED] wrote:
Hi,
is there anyway to set the color of a row from the
bean being iterated?
My code is given below:
logic:iterate id=loan name=loans
type
Try this
logic:iterate id=loan name=loans
type=com.mortgagehub.cba.business.LoanSummaryBean
tr
td align=left valign=middle colspan=1
font size=2 color=%=loan.color()% face=Verdana
bean:write name=loan property=status filter=true/
/font
/td
/logic:iterate
-Original Message-
From
sorry that should be loan.getColor()
-Original Message-
From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:41 PM
To: 'Struts Users Mailing List'
Subject: RE: Setting Color inside logic:iterate
Try this
logic:iterate id=loan name=loans
type
Color inside logic:iterate
Hi,
is there anyway to set the color of a row from the bean being iterated?
My code is given below:
logic:iterate id=loan name=loans
type=com.mortgagehub.cba.business.LoanSummaryBean
tr
td align=left valign=middle colspan=1
font size=2 color=#00 face
this
has no data in it, and I use iterator on it, like so:
(assume
"TheBigForm" is declared w/ type BigForm in
struts-config.xml)
logic:iterate name="TheBigForm" property="subFormX"
id="subForm"
bean:write
property="subFormPropOne" name=&quo
does elt.getName() return a String?
--- Slimane [EMAIL PROTECTED] wrote:
Hi,
I try to do an iteration on a vector. When this vector contains only
Strings, the iteration works well. For that, I use the following piece of
code:
logic:iterate id=elt name=listform scope=session property
601 - 700 of 861 matches
Mail list logo