Logic Iterate problem:
Can we have nested logic iterates?
e.g. if I want to show list of products under all Categories. how can i implement that?
I am having problem in setting the values of attributes for inner logic iterate loop
logic:iterate id=category name=categorylist
bean:write
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
Hi,
I hava a userForm that has a ArrayList of User objects, each User object has several
properties: fistname, lastname, age.
How can I get all User's firstname, lastname, age in an iterate?
Thanks.
bruce
Is Doing
-Original Message-
From: Neal [mailto:[EMAIL PROTECTED]
Sent: February 26, 2003 5:51 PM
To: [EMAIL PROTECTED]
Subject: RE: checkbox and iterate problem
I'm afraid you've lost me, I thought the propery HAD to be boolean for a
checkbox.
Can you please send me a code snippet of what you
Hi,
I'm having a problem with checkboxes and I was hoping someone could help.
The short version is:
when using logic:iteratate over an array of checkboxes, the setter
method is not called after submit
Long version
I have class CheckableString { String str; boolean checked = false;
//
and iterate problem
Hi,
I'm having a problem with checkboxes and I was hoping someone could help.
The short version is:
when using logic:iteratate over an array of checkboxes, the setter
method is not called after submit
Long version
I have class CheckableString { String str; boolean checked
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: February 26, 2003 1:18 PM
To: [EMAIL PROTECTED]
Subject: checkbox and iterate problem
Hi,
I'm having a problem with checkboxes and I was hoping someone could
help
PROTECTED]
Subject: RE: checkbox and iterate problem
I have a Reset method, and I am calling mFolders[i].setChecked(false) for
each item in my array. Is that what you mean by setting the default value
?
If so, it hasn't fixed my problem.
Thanx
Have to set default value in reset method.
Regards
Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: February 26, 2003 1:18 PM
To: [EMAIL PROTECTED]
Subject: checkbox and iterate problem
Hi,
I'm having a problem with checkboxes and I was hoping someone
PROTECTED]
Subject: RE: checkbox and iterate problem
I changed everything from boolean (primative) to Boolean (Object type), no
difference
I still see the same behavior.
After submit my setter function is not called.
but for a non-indexed checkbox it is called.
However the getter() is always
:[EMAIL PROTECTED]
Sent: February 26, 2003 5:20 PM
To: [EMAIL PROTECTED]
Subject: RE: checkbox and iterate problem
I changed everything from boolean (primative) to Boolean (Object type),
no difference
I still see the same behavior.
After submit my setter function is not called.
but for a non
and iterate problem
I changed everything from boolean (primative) to Boolean (Object type),
no difference
I still see the same behavior.
After submit my setter function is not called.
but for a non-indexed checkbox it is called.
However the getter() is always called.
Neal
try Boolean.FALSE (Object
your MultiMap class does not have getKey() method which bean:write
name=mm property=key/ translates to.
-Original Message-
From: Mark Ayad [mailto:mark;javamark.com]
Sent: Tuesday, November 12, 2002 10:18 AM
To: Struts Users Mailing List
Subject: Map iterate problem
I have a Map which
I have a Map which I place into the Application Context using the following line in a
plugin init:
servlet.getServletContext().setAttribute(mm, new MultiMap());
The map is:
public class MultiMap
{
public Map values = new HashMap();
public void setValue(String key, Object value) {
:
Subject: Map iterate problem
I have a Map which I place into the Application Context using the following
line in a plugin init:
servlet.getServletContext().setAttribute(mm, new MultiMap());
The map is:
public class MultiMap
, November 12, 2002 4:19 PM
Subject: RE: Map iterate problem
Your multimap must be an instance of java.util.Map to get logic:iterate to
recognize/handle it properly.
-Original Message-
From: Mark Ayad [mailto:mark;javamark.com]
Sent: Tue 11/12/2002 9:17 AM
To: Struts Users Mailing List
Cc
Title: Map iterate problem
Or you
can define your Map from MultiMap
(Note:
some changes made to MutiMap)
public
class MultiMap{public Map mymap = new
HashMap(); public void setValue(String key, Object
value) { values.put(key,
value); } public Object
getValue(String key) { return
Message -
From: Vinh Tran
To: Struts Users Mailing List ; [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 4:45 PM
Subject: RE: Map iterate problem
sorry...forgot the property attribute...
bean:define id=yourMap property=mymap name=mm scope=application
-Original Message
Map iterate problemThe iterate examples seem to use Maps that are created in the
PageScope. In the case of a Map-backed action form.
However what I'm trying to do is iterate over a an Object placed in the application
scope: a.k.a. I can't seem to get the logic:iterate to work even though the
I actually had this problem with other objects (not necessarily maps)
and it turned out that the logic and bean tags would only find my
objects if I set them in the pageContext object, meaning I would have to
do this in my JSP:
% pageContext.setAttribute( mm
Mark:
Please include code otherwise I can't help youand include the error you
are receiving.
Vinh
-Original Message-
From: Mark Ayad [mailto:mark;javamark.com]
Sent: Tuesday, November 12, 2002 11:05 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Map iterate problem
One of thoes afternoons it all works now, I've attatche all the code
urgh ?
- Original Message -
From: Vinh Tran [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 6:15 PM
Subject: RE: Map iterate problem
Mark:
Please include code
I'm coming up to speed with Struts, and I can't seem to figure out the
logic:iterate tag. I've got:
logic:iterate id=logo name=logoForm
property=logoMap
...
bean:write name=logo property=number/
I keep getting a cannot find bean logo
Users
Mailing ListSubject: Newbie iterate problem
list (E-mail)
Subject: Newbie iterate problem
I'm coming up to speed with Struts, and I can't seem to figure out the
logic:iterate tag. I've got:
logic:iterate id=logo name=logoForm
property=logoMap
...
bean:write name=logo
| From: James Mitchell [mailto:[EMAIL PROTECTED]]
| Sent: Monday, August 12, 2002 14:02
|
| Can you send the action declaration for this jsp (from the
| struts-config)?
Here 'tis:
action path=/selectLogo
type=LogoSelectAction
name=LogoSelectForm
Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: Nelson, Tracy (ETW) [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 5:03 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie iterate problem
| From: James Mitchell [mailto:[EMAIL PROTECTED
-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 10:07 PM
To: Struts Users Mailing List
Subject: RE: Newbie iterate problem
Sorry for taking so long
Hi all,
I have a newby question - nobody's answered my previous questions so I
feel like the invisible man on this list but here goes anyways
(maybe I can guilt somebody into helping me)
Using Struts 1.0/tiles I need to be able to iterate through a list of
dynamic html:text fields. I'm
Hi all,
I have a newby question - nobody's answered my previous questions so I
feel like the invisible man on this list but here goes anyways
(maybe I can guilt somebody into helping me)
Using Struts 1.0/tiles I need to be able to iterate through a list of
dynamic html:text fields. I'm
Hi,
You can found a little (and temporaly) patch here :
http://www.mycgiserver.com/~eboudrant/?nostat=true#dyna
This bug should be resolved in next struts release.
Bug: When we redisplay an DynaActionForm with indexed property, the value displayed is
not the real value, but the address of the
This is all kind of fussy. You have to get the id's and everything
right, manage the bean names etc, etc, etc.
You can forget all of that stuff and use the nested tags. Makes life
100% simpler for iterating and everything else.
They've been in Struts since January. Just that not too many
I sure seem to be having my share of problems with logic:iterate this
week
My form bean (EditCustomerForm) has a property that sets and gets a List of
Customer objects. These objects themselves contain the usual name, address,
etc. stuff. I need to iterate through the collection of
: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 2:00 PM
To: Struts (E-mail)
Subject: Iterate Problem
I sure seem to be having my share of problems with logic:iterate this
week
My form bean (EditCustomerForm) has a property that sets and gets a List of
Customer objects
On Friday, April 26, 2002, 2:00:19 PM, Mark wrote:
GM I sure seem to be having my share of problems with logic:iterate
GM this week
GM My form bean (EditCustomerForm) has a property that sets and gets a List of
GM Customer objects. These objects themselves contain the usual name, address,
logic:iterate name=EditCustomerForm
property=customers
id=customer
type=com.whatever.Customer
tr
tdbean:write name=customer property=name//td
tdbean:write name=customer property=address//td
/tr
/logic:iterate
-- Jim
Galbreath, Mark
rows will
be the same of number of the elements in the Vector you passed on.
Thanks,
Yanhui
-Original Message-
From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 7:16 PM
To: Struts Users Mailing List
Subject: Iterate problem
Dear Friends,
I have a jsp in where
Dear Friends,
I have a jsp in where we have columns as follows
Add no. of rows you wish to add - go
AB CD E
save
1. Using java scripts we allow user to add rows
dynamically on the page.
2. How may I achieve this functionality of dynamically
adding rows using struts? how
hi,
my problem:
i have a bean with two ArrayLists. my action class gets the results from
the database and puts them into the appropriate Arraylist. Then the
whole bean is appended to the session.
so in my view page i would like to iterate thru the ArrayLists of my
bean. BUT i need to generate a
Oliver == Oliver Kiessler [EMAIL PROTECTED] writes:
Oliver hi,
Oliver my problem:
Oliver i have a bean with two ArrayLists. my action class gets the results from
Oliver the database and puts them into the appropriate Arraylist. Then the
Oliver whole bean is appended to the
ok. you are right. i created a class class1 with two properties. in
the action class i create a bean with an arraylist of all class1
objects.
in my view i then iterate thru the arraylist of the bean and display the
two properties of type class1.
works!
thanks, oliver
Am Son, 2002-03-10 um
Hello all,
I am trying to create a table where Its columns will be generated
dynamically. I coded something like this which works quite fine,
logic:iterate id=UserAdmin name=UserAdminFormBean
property=listrowcontent indexId=index offset=0
TR
TDSome other UserAdmin
My problem is. I don't want to use Roll class, since
it only contains a string. I have just created this Roll class, since I
couln't find any way to make it run with struts. What do you think?
is there any other way to do
same thing?
If you don't specify the property attribute, the tag
:
Subject: Iterate problem
10.07.2001
it is goes something like this .
private String orderNo ;
public String getOrderNo() {
return orderNo ;
}
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 10, 2001 8:28 AM
Subject: Re: Iterate problem
Hi
The parts you show look correct
] To: [EMAIL PROTECTED]
ltech.com cc:
Subject: Re: Iterate problem
I still struggling with iterate problem still . Any solutions . I do
have the proper getter methods in the OverDueOrderView .
getting Here I'm getting **in side the getView of UpdateOrder Form 0 **
printed
with following error message javax.servlet.ServletException: Exception
thrown
:
http://husted.com/about/struts/indexed-tags.htm
Jon.
-Original Message-
From: suhas [mailto:[EMAIL PROTECTED]]
Sent: 10 July 2001 15:20
To: [EMAIL PROTECTED]
Subject: Iterate problem - Any Solutions !!
I still struggling with iterate problem still . Any solutions . I do
have
PROTECTED]
To: [EMAIL PROTECTED], suhas
[EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: Re: Iterate problem - Any Solutions !! - SOLVED FINALLY
Another point -
The iterate tag used here is just acting as a for loop . I mean the
scripting variable it exposes
Hello everyone.
I am currently having some problems with iterating over an array of objects.
In my action class I have put an array into the session object
(request.getSession().setAttribute(orderedsandwiches,...);)
I would like to loop over these objects in my jsp page.
I am trying to do
PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 1:43 PM
Subject: iterate problem
Hello everyone.
I am currently having some problems with iterating over an array of
objects.
In my action class I have put an array into the session object
(request.getSession().setAttribute
Have you defined the struts-logic.tld at the top of your jsp?
-Original Message-
From: Moons Manuel [mailto:[EMAIL PROTECTED]]
Sent: 09 July 2001 13:43
To: '[EMAIL PROTECTED]'
Subject: iterate problem
Hello everyone.
I am currently having some problems with iterating over
Hi I have a question
My Iterate tag goes like this
logic:iterate id="view"
name="updateOrderForm"property="views"
type="example.testorder.OverDueOrderView"
trtdhtml:text
property='%= "view[" + index+ "]"+".orderNo" %' /
/tdtdhtml:text property='%= "view["+index+
"]"+".salesDiv" %'
53 matches
Mail list logo