Ok, it's working.
Thanks,
Popo
--- Nikhil Walvekar [EMAIL PROTECTED] wrote:
try
onchange='%= onchangeGrade( + indexId.intValue()
+ ); %'
Regards,
Nikhil
On 12/12/06, Po Po [EMAIL PROTECTED] wrote:
Hello,
I've a collection and i iterate using
logic:iterate,
inside
Hey guys; I have a really annoying problem that I've killed far too much
time on- I was hoping someone might have some additional insight. I
created a page that uses a logic:iterate to populate a table with an
ArrayList of Beans. This works beautifully on first view, but subsequent
page views
Hi,
I think u have to set the scope to session ...just try it... and
let us
know..
Regards,
Mano
Yes, for some reason, when I change the scope of the action mapping
to session the message in the console goes away. I don't understand
at all. Why it the JSP function correctly in both
Hi,
Try this .
logic:iterate id=listvo name=userList type=com.user.UserModel
Here name attribute should be what you have set the key in request and
specify the location of your class in type w.r.t web application.
Rest is fine.
It should work.
-Original Message-
From: santas [mailto
HI
i tried what u said but stil the same error is shown to me
i have set the list with key users
then i first check
logic:present name=users
table
tr
th/th
th/th
/tr
logic:iterate id=listvo name=users type=com.user.uservo
tr
td
bean:write name=listvo property=firstname/
/td
try to use the scope attribute of the iterator tag and see,
eg:
logic:iterate id=listvo name=users type=com.user.uservo
scope=request
logic:iterate id=listvo name=users type=com.user.uservo
scope=session
Thanks,
Nuwan.
- Original Message -
From: santas [EMAIL PROTECTED
check
logic:present name=users
table
tr
th/th
th/th
/tr
logic:iterate id=listvo name=users type= com.user.uservo
tr
td
bean:write name=listvo property=firstname/
/td
td
bean:write name=listvo property=lastname/
/td
/tr
/table
/logic:present
and again i got same error
is there any
To: user@struts.apache.org
Subject: RE: Problem while using logic:iterate
HI
i tried what u said but stil the same error is shown to me
i have set the list with key users
then i first check
logic:present name=users
table
tr
th/th
th/th
/tr
logic:iterate id=listvo name=users type
ArrayList();
//populate list something like uservoList.add(new Uservo());
request.setAttribute(listvo,uservoList);
Thats it. Im all set to use an ArrayList i set in request scope.
logic:iterate id=uservo name=listvo
!--Some Processing--
/logic:iterate
Regards,
--
Eider
On 11/13/06, santas [EMAIL
ArrayList();
//populate list something like uservoList.add(new Uservo());
request.setAttribute(listvo,uservoList);
Thats it. Im all set to use an ArrayList i set in request scope.
logic:iterate id=uservo name=listvo
!--Some Processing--
/logic:iterate
Regards,
--
Eider
On 11/13/06, santas
.getContactNumber());
a1.add(m1);// add it to arraylist.
}
3. return the arraylist to action class.
4. set it to request Attribute.
5. on jsp page use logic:iterate to fetch it.
6. AtLast debug if any
Subject: RE: Problem while using logic:iterate
Debug your code.
Make sure that your listvo should exist.
Use scriplet and use println to verify the object status using in logic
iterate.
The problem lies with code written in action class.
-Original Message-
From: santas [mailto:[EMAIL
, November 13, 2006 5:33 PM
To: user@struts.apache.org
Subject: RE: Problem while using logic:iterate
HI
i tried what u said but stil the same error is shown to me
i have set the list with key users
then i first check
logic:present name=users
table
tr
th/th
th/th
/tr
Thank You All
for your great support,help and valueable time
finally it is working now, today i learned a lot from you all about
logic:iterate tag
Thank You once again
Puneet Lakhina wrote:
On 11/13/06, Eider Iturbe [EMAIL PROTECTED] wrote:
Hi,
You mustn´t add an ArrayList in request
I'm not too worried about this because it seems to be working, but
here goes.
I'm running Struts 1.2.9 on Apache Tomcat 5.5.x. One of my JSPs has
the following section in it.
ul
logic:iterate name=accountInformationForm property=accounts
id=accountSummaryView
li
14, 2006 5:06 AM
To: user@struts.apache.org
Subject: Console error message for a working logic:iterate tag
I'm not too worried about this because it seems to be working, but
here goes.
I'm running Struts 1.2.9 on Apache Tomcat 5.5.x. One of my JSPs has
the following section in it.
ul
Hi Brad,
Double check your Struts-config whether u have set the
scope=session
for this action. And also try using simple Bean writes before using
html:link For link creations...
Regards,
Mano
The struts config file uses scope=request for this action. I tried
adding a bean:write before
Do you think this something to do with the session using
scope=request?
Blah, I can't talk. Do you think this has anything to do with the
action mapping using a scope=request?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
logic:iterate tag
Do you think this something to do with the session using
scope=request?
Blah, I can't talk. Do you think this has anything to do with the
action mapping using a scope=request?
-
To unsubscribe, e-mail: [EMAIL
error message for a working logic:iterate tag
Hi,
I think u have to set the scope to session ...just try it... and let us
know..
Regards,
Mano
-Original Message-
From: Bradley Wagner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 14, 2006 10:11 AM
To: Struts Users Mailing List
Subject
, Jim (RBoS ITDS Dublin) [EMAIL PROTECTED]
wrote:
Hi,
I've discovered the answer, although it may not be the most
elegant.
Rather than having one form, have one form per row. This is
achieved
by placing the html:form tags inside the logic:iterate ones, then
the
html:hidden
per row. This is
achieved
by placing the html:form tags inside the logic:iterate ones, then
the
html:hidden tag will contain the correct value when the button is
pressed.
Thanks
Regards,
Jim
List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Subject
Re: Issue: using logic:iterate to display rows and html:button to
distinguish one of them
What do you get when you try it?
(*Chris*)
On 11/7/06, Pankaj Gupta [EMAIL PROTECTED] wrote:
I am
to replace the
hidden elements,and only one delete button is enough.
2006/10/26, Gallagher, Jim (RBoS ITDS Dublin) [EMAIL PROTECTED]:
Hi
Apologies if this is a simple issue, but it's driving me insane.
In my web app (using Struts 1.1 on Java 1.4 Websphere) I have a jsp that
is using logic:iterate
Hi
Apologies if this is a simple issue, but it's driving me insane.
In my web app (using Struts 1.1 on Java 1.4 Websphere) I have a jsp that
is using logic:iterate to display a sequence of records.
On each row I have a Delete button, which should cause the object that row
represents
ITDS Dublin) [mailto:[EMAIL PROTECTED]
Inviato: giovedì 26 ottobre 2006 12.02
A: 'user@struts.apache.org'
Oggetto: Issue: using logic:iterate to display rows and html:button to
distinguish one of them
Hi
Apologies if this is a simple issue, but it's driving me insane.
In my web app (using
originale-
Da: Gallagher, Jim (RBoS ITDS Dublin) [mailto:[EMAIL PROTECTED]
Inviato: giovedì 26 ottobre 2006 12.02
A: 'user@struts.apache.org'
Oggetto: Issue: using logic:iterate to display rows and html:button to
distinguish one of them
Hi
Apologies if this is a simple issue, but it's driving me
Mailing List
Subject: R: Issue: using logic:iterate to display rows and html:button to
distinguish one of them
*** WARNING : This message originates from the Internet ***
Sorry i forgot something in my code
c:url value=/delete.do var=urldel
c:param name=idToDeletebean:write name=index property
Hi,
I've discovered the answer, although it may not be the most elegant.
Rather than having one form, have one form per row. This is achieved
by placing the html:form tags inside the logic:iterate ones, then the
html:hidden tag will contain the correct value when the button
not be the most
elegant.
Rather than having one form, have one form per row. This is
achieved
by placing the html:form tags inside the logic:iterate ones, then the
html:hidden tag will contain the correct value when the button is
pressed.
Thanks
On 10/13/06, Vinod Kumar [EMAIL PROTECTED] wrote:
Hi All,
I have hashmap with key/value but the value in this
hashmap is another hashmap.
How can I iterate over all the values using
logic:iterate.
HashMap h1 = new HashMap();
String id=1;
HashMap h2 = new HashMap();
h2.put(id,123);
h2.put
I think you need nested:iterate instead of logic:iterate in the
inner tag. But please correct me if I'm wrong.
-Original Message-
From: Puneet Lakhina [mailto:[EMAIL PROTECTED]
Sent: Friday, October 13, 2006 1:58 PM
To: Struts Users Mailing List
Subject: Re: iterating of collection
logic:iterate.
HashMap h1 = new HashMap();
String id=1;
HashMap h2 = new HashMap();
h2.put(id,123);
h2.put(key1,456);
h2.put(key2,789);
then I make entry to h1 like
h1.put(id,h2) and so on...more entries added to
h1.
Now I want to iterate thru all the values of h1
Hi All,
I have hashmap with key/value but the value in this
hashmap is another hashmap.
How can I iterate over all the values using
logic:iterate.
HashMap h1 = new HashMap();
String id=1;
HashMap h2 = new HashMap();
h2.put(id,123);
h2.put(key1,456);
h2.put(key2,789);
then I make entry to h1
or
in the inner iterate have both name set to entry and property to value
From: Vinod Kumar [mailto:[EMAIL PROTECTED]
Sent: Fri 10/13/2006 6:29 AM
To: user@struts.apache.org
Subject: iterating of collection of HashMapsusing logic:iterate
Hi All,
I have hashmap
Thanks Pradyumna !! I am able to make it work as
suggested by you.
Thanks
Vinod
--- Pradyumna kumar, Jena (J.) [EMAIL PROTECTED]
wrote:
try somethin like this
logic:iterate id=currentEntry collection=h1
%
Map cuurentMap=((Map.Entry
)currentEntry).getvalue
logic:iterate
Regards
Venkata Phanikumar. G
: iterating Vector of HashMap using Logic:iterate
Hi,
I have a VectorHashMap. Each HashMap holds two elements as key 'field1' and
'filed2'.
Now in jsp page i have to iterate over above vector and have to construt one
combo box as below
select name=
option value=field1field2/option
/select
could any
/select
could any body help how to display as above using logic:iterate
Regards
Venkata Phanikumar. G
I have a html-el:select in a logic loop and the values are not being
retained after submtitting the form and returning with a validation
action error.
The html-el:text fields values are being retained and they are in the
exact same object.
logic:iterate id=address type=mypackage.AddressVO name
, Garner Shawn [EMAIL PROTECTED] wrote:
I have a html-el:select in a logic loop and the values are not being
retained after submtitting the form and returning with a validation
action error.
The html-el:text fields values are being retained and they are in the
exact same object.
logic:iterate id
contains.
At the moment I can online write out the elements using this code-snippet:
logic:iterate name=FormBean property=stringList id=str
bean:write name=str /
/logig:iterate
Just putting in html:text name=str property=fooBar doesn't work,
because the str-String-Object doesn't have getter or setter
Florian Barth wrote:
Looks very nice, but the textfield accesses the getter and setter of
the LabelValueBean
that is returned from the StrinBean. My Bean just returns the the
String-object that has
actually no getter and setter for it's value.
Let me get this straight: you're iterating over
The list of strings is actually part of an ActionForm.
On load of display I kinda like to decompose the list to a bunch of
text-fields, that are recomposed to a list of string on submit
c:forEach items=${listOstrings} var=s
input type=text name=${s}
/c:forEach
I'll try this, maybe the
I tried to do it with your piece of code, but that didn't quite work
I think one solution would be to write a StringWrapper with a
String-Value and the according getter/setter (e.g. getVal, setVal) and
fill the list with this StringWrappers instead of Strings, so html:text
:
logic:iterate name=FormBean property=stringList id=str
bean:write name=str /
/logig:iterate
Just putting in html:text name=str property=fooBar doesn't work,
because the str-String-Object doesn't have getter or setter for it's
value, so I didn't find an substitute for fooBar that works. I pretty
sure
out the elements using this code-snippet:
logic:iterate name=FormBean property=stringList id=str
bean:write name=str /
/logig:iterate
Just putting in html:text name=str property=fooBar doesn't work,
because the str-String-Object doesn't have getter or setter for it's
value, so I didn't find
user's input.
My current solution is:
logic:iterate id=itemInList1' name=AppBean property=List1
indexId=index
html:text name=AppBean property='%= List2[ + index + ] %'/
/logic:iterate
But it seems not working properly, List2[index] is NULL
Any suggestions?
Hi all,
I m having a problem with logic:iterate
I have a Map that contains{String, MyDTO}
In my jsp I m writing following code;
logic:iterate name=%= MyMap % id=stock
tr
tdbean:write name=stock property=key//td
tdbean:write name
PROTECTED] wrote:
Hi all,
I m having a problem with logic:iterate
I have a Map that contains{String, MyDTO}
In my jsp I m writing following code;
logic:iterate name=%= MyMap % id=stock
tr
tdbean:write name=stock property=key//td
tdbean:write name
Logic iterate can be used only over a collection of elements.
Check whether the property userRoles in the bean returned by
LookUpConstants.SESSION_OBJECT is a collection.
Also the property names used in bean:write(role) is different from the
property name used in logic:iterate(userRoles) which I
Hi,
If you are using logic equal , you should also use logic not equal.
Regards,
Nagesh
-Original Message-
From: siva sajja [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 11, 2006 12:08 PM
To: Struts Users Mailing List
Subject: Re: Basic Logic:iterate question
Logic iterate can be used
:
logic:iterate id=role
name=%=LookupConstants.SESSION_OBJECT%
property=userRoles scope=session
logic:equal name=role property=SUPER
a href=test.do class=BodyLinkbtest/b/abr /
/logic:equal
@struts.apache.org
Subject: Basic Logic:iterate question
Greetings everyone:
Objective: Retrieve an object from the session that contains a
Collection of String for userRoles. Iterate through userRoles, and if
one of the roles equals SUPER include a href.
So this is what I have
Thanks. Does anyone know where I can get some good reference material on Struts
Tags?
Patil, Sheetal [EMAIL PROTECTED] wrote: Hi there
As my best knowledge your And supports for either int or boolean
-Original Message-
From: josh t [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 11,
why not use logic:match tag instead?
josh t [EMAIL PROTECTED] wrote: Greetings everyone:
Objective: Retrieve an object from the session that contains a Collection of
String for userRoles. Iterate through userRoles, and if one of the roles
equals SUPER include a href.
So this
This may help:
http://struts.apache.org/struts-action/struts-taglib/index.html
You may also want to consider using the jstl tags. i think the struts
logic tags may be depreciated in favor of jstl. the jstl tags to solve
your problem are c:forEach and c:if and the documentation is here:
Naveen Sharma ha scritto:
Hi !
Can someone Please help me with the logic:empty.
I am not able to implement it
Be less dumb please... the more you write, the better we can help
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
: logic:empty and logic:iterate
Hi !
Can someone Please help me with the logic:empty.
I am not able to implement it
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Naveen,
http://struts.apache.org/struts-taglib/tagreference-struts-logic.html#logic:empty
--
Ahmed Hashim
www.egjug.org
www.egjug.org\hashimblog
On 4/18/06, Naveen Sharma [EMAIL PROTECTED] wrote:
Hi !
Can someone Please help me with the logic:empty.
I am not able to implement it
--
In
/2006 11:56
Para: user@struts.apache.org
Asunto: logic:empty and logic:iterate
Hi !
Can someone Please help me with the logic:empty.
I am not able to implement it
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
!datosPersona.getReferencia().trim().equals()){
%
td../td
%
else{%
td../td
}%
De: Naveen Sharma [mailto:[EMAIL PROTECTED]
Enviado el: mar 18/04/2006 11:56
Para: user@struts.apache.org
Asunto: logic:empty and logic:iterate
Hi !
Can
How can I set the offset and length properties of the logic:iterate struts tag
dinamicaly? I mean, maybe getting the values from the session or a bean...
Regards,
Yariel.
=com.acme.Subscription
...
/logic-el:iterate
I have session-scoped ActionForm and store parameters in it.
Michael
On 3/22/06, Yariel Ramos Moreno [EMAIL PROTECTED] wrote:
How can I set the offset and length properties of the logic:iterate struts
tag dinamicaly? I mean, maybe getting the values from
Users Mailing List
Betreff: Re: ActionForm with ArrayList and logic:iterate confusing
problem ...
Hans,
You're using request scope for your form. When Struts processes the
submitted form, it will create a new instance of your ActionForm. The
question now is, is the new instance ready to deal
Hans,
You're using request scope for your form. When Struts processes the
submitted form, it will create a new instance of your ActionForm. The
question now is, is the new instance ready to deal with setting values
on your ArrayList field? Struts will not instantiate that list for
you, it
]: java.lang.NullPointerException
In this example,
logic:iterate id=right name=authRightForm property=objectNames
right and objectName must be the same, or not? objectNames is the ArrayList
(or Array) of my right-objects, but with which property is id mapping?
because i get in the request the names
]: java.lang.NullPointerException
In this example,
logic:iterate id=right name=authRightForm property=objectNames
right and objectName must be the same, or not? objectNames is the
ArrayList
(or Array) of my right-objects, but with which property is id mapping?
because i get in the request the names right[xx
**DISCLAIMER**
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this
is the problem again, maybe someone knows a good doc or has an idea
...?
I have modified the iteration from logic:iterate id=right ... to
logic:iterate id=rightlist_ary ... because that's my array I want to have
filled, but after submitting the form I get ...
[BeanUtils.populate
**DISCLAIMER**
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this
: Fwd: logic:iterate
Hey Hans,
I think you might want to use the nested tags for what you are
trying to do. Depending on the version of struts you are using, the
nested taglib could be included with the Struts distribution. Here is a
link to some tutorials etc. on the nested tags
http
it?
thanks in advance
Hans
_
Von: Brian Holzer [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 23. Februar 2006 15:15
An: struts-user@jakarta.apache.org
Betreff: Fwd: logic:iterate
Hey Hans,
I think you might want to use the nested tags for what you are trying to
do. Depending
**DISCLAIMER**
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this
.Items}
tr
td
html:multibox name=Form1 property=selectedItems
bean:write name=item property=value/
/html:multibox
bean:write name=item property=label/
/td
/tr
/c:forEach
/table
It works fine with the logic:iterate tag. Only when trying to use JSTL
Have you tried using c:out instead of bean:write?
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 03, 2006 11:37 AM
To: user@struts.apache.org
Subject: struts logic:iterate c:forEach of JSTL
In struts config file I have it as
form-bean
Next time check documentation for this kind of questions.
logic:iterate name=adminFormBean property=anulFarms id=oneFarm
b Farm Number ${oneFarm.number} Name is - ${oneFarm.name}/b br
/logic:iterate
Cheers,
Danny
Eider Iturbe schrieb:
I don't know how to implement in jsp the code
=hmUserPrijenosList
logic:iterate id=hmUserPrijenos name=hmUserPrijenosList
html:option value=bean:write name='hmUserPrijenos'
property='user-podatak-2-0'/bean:write
name='hmUserPrijenos' property='user-podatak-1-0'//html:option
/logic:iterate
/logic:present
/html:select
/td
When I'm hiting submit button
2005 10:20
To: user@struts.apache.org
Subject: [Maybe Spam] html:select and logic:iterate
I have problem with this part of code:
td class=Podaci align=right
html:select property=vrstaKredita styleClass=Podaci
html:option value=/html:option
html:option
value
remove logic present.
it works.
by the way how can you get that list(hmUserPrijenosList) back in action from
the request.i have that problem.
is there any way to get that in the action class.
cheers.
After removing logic present everything is still the same :-(
answer to your
] html:select and logic:iterate
remove logic present.
it works.
by the way how can you get that list(hmUserPrijenosList) back in action
from
the request.i have that problem.
is there any way to get that in the action class.
cheers.
After removing logic present everything is still the same
- Original Message Follows -
how can you get it from the session in the action class(not in the jsp).
as http wrappers return only strings or string arrays.
first i make one big class like:
import java.io.Serializable;
public class User implements Serializable {
logic:iterate id=hmUserPrijenos
name=hmUserPrijenosList
bean:define id=xyz name=hmUserPrijenos
property=user-podatak-2-0/
html:option value=xyzbean:write
name='hmUserPrijenos' property='user-podatak-1-0'//html:option
/logic:iterate
/logic:present
/html:select
/td
If I do this, than i get several
I hope this will surely work for you. If not please send me the error what u
r getting. so i can
figure it out what's happening really...
td class=Podaci align=right
html:select property=vrstaKredita styleClass=Podaci
html:option
Hi,
I've defined in a formBean called adminFormBean this:
private List anulFarms = new ArrayList();
public void setAnulFarms(int key, long anulFarm) {
this.anulFarms.add((long) anulFarm);
}
public long getAnulFarms(int key) {
return (Long)anulFarms.get(key);
}
On 11/28/05, Eider Iturbe [EMAIL PROTECTED] wrote:
Hi,
I've defined in a formBean called adminFormBean this:
private List anulFarms = new ArrayList();
public void setAnulFarms(int key, long anulFarm) {
this.anulFarms.add((long) anulFarm);
}
public long
I don't know how to implement in jsp the code logic:iterate
id=... to read all the values of the arraylist,
Eider
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hello,
is the following true?
1) if I do a logic:iterate over a Collection when viewing the items in the
Collection, I can use e.g. a HashSet
2) if I do a logic:iterate over a Collection and I want to be able to also
update the items, I need to use an indexable Collection, e.g. an ArrayList
Per Jørgen Walstrøm wrote:
hello,
is the following true?
1) if I do a logic:iterate over a Collection when viewing the items in the
Collection, I can use e.g. a HashSet
2) if I do a logic:iterate over a Collection and I want to be able to also
update the items, I need to use an indexable
Thanks! I went with my original setup and things are working well. A
bit more coding than I wanted but that's OK ;-)
On Nov 17, 2005, at 5:36 PM, Michael Jouravlev wrote:
On 11/17/05, Jon Wynacht [EMAIL PROTECTED] wrote:
Hi,
I have a question that might have already been answered but I
Jon Wynacht wrote:
...
You see, when I iterate through the ArrayList, I do something like this:
logic:iterate id=event name=AddEventGroup property=events
html:text name=AddEventGroup property=eventDuration
value=bean:write name='event' property='aDuration'/
..
/logic
For starters
On 11/17/05, Jon Wynacht [EMAIL PROTECTED] wrote:
Hi,
I have a question that might have already been answered but I wasn't
sure how to search for the answer, etc. so I'll ask it and take the
abuse, if given ;-)
I have a form which is set up to have N number of line items.
Initially,
Hello,
I'm searching the manner to do a reverse iteration,
any idea ?
Thanks in advance
--
Cordialement,
Arnaud Gonzales.
of check boxes.
I can use logic:iterate to iterate over the questions but how to group
these multiple choices for each question into one group of radio button,
what i dont understand is how to generate the group names dynamically !! ??
Any suggestion will be appreciated.
Thanks in advance.
Bijay
.. for each question i have 3 multiple choice. Now, i have to
group
these multiple choices for each question into one group of check boxes.
I can use logic:iterate to iterate over the questions but how to group
these multiple choices for each question into one group of radio button,
what i dont
Murray,
Many thanks - I had totally missed indexId. This makes it so easy!
Mike
Murray Collingwood wrote:
Hi Mike
Thats easy.
Outer loop needs to specify the indexId parameter as in:
logic:iterate name=applicationForm property=familymembers id=familymmber
type=application.FamilyMember
Thanks for that - but I think I've not explained my problem properly.
The problem is that the bean containing the data is NOT the one in the
inner loop but the bean iterated through in the outer loop:
logic:iterate name=applicationForm property=familymembers
id=familymmber type
Hi Mike
Thats easy.
Outer loop needs to specify the indexId parameter as in:
logic:iterate name=applicationForm property=familymembers id=familymmber
type=application.FamilyMember indexId=memberIndex
Then you can use whatever inner loop (or loops) you want.
logic:iterate something else
Hi,
I have a problem trying to create a multi row edit form which has to be
able to dynamically decide which columns should be displayed for edit.
My jsp uses the code below.
logic:iterate name=applicationForm property=familymembers
id=familymembers
tr
logic:iterate
documentation. So, outer loop should be:
logic:iterate name=applicationForm property=familymembers
id=familymember
type=controller.form.FamilyMemberForm
Then we can add the inner loop in a similar manner, referencing the
'familymember'
defined in the outerloop:
logic:iterate name=familymember
101 - 200 of 343 matches
Mail list logo