Look at the 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
i implement
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
I have a bean "cate
hi Sumit
Can u sedn the code snapshot for nested iterate.
I have 2 beans .Oneis for category and secound is for sub category. I m
returning one collection to the JSp File which contain the category name and
subcategory beans List.Subcategory bean list is further having its own
properties which ar
Hi,
Make use of nested:iterate .. its pretty simple to use and it is ment to
iterate inside an iterate
But do make a parent child relationship for this nested iterate to work
Rgds,
Sumeet:)
On Mon, 17 Nov 2003 Hari_s wrote :
>Hi everyone..
>I have problem with iterate within ite
Hi everyone..
I have problem with iterate within iterate..
I have iterate table that contain iterate data
and this is my code ...
but that code produce error like this
javax.servlet.jsp.JspException: No getter method for property data2 of bean ide
java.lang.Object
Well you know what you want to which is most the way there..
You'll want to check the struts docs on indexed properties.
..ActionForm
private ArrayList userList;
public ArrayList getUsers() {
return userList;
}
public addUser(User user) {
this.userList.add(user);
}
...
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
sage-
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 have working (eve
L 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
s Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: Neal [mailto:[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 (Objec
: 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-indexed checkbox it is ca
uary 26, 2003 2:04 PM
> To: [EMAIL 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 fixe
3 2:04 PM
To: [EMAIL 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 d
gt; "This Guy Thinks He Knows 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 pr
ubject: checkbox and iterate problem
Hi,
I'm having a problem with checkboxes and I was hoping someone could help.
The short version is:
when using over an array of checkboxes, the setter
method is not called after submit
Long version
I have class CheckableString { String str
Hi,
I'm having a problem with checkboxes and I was hoping someone could help.
The short version is:
when using over an array of checkboxes, the setter
method is not called after submit
Long version
I have class CheckableString { String str; boolean checked = false;
// etc.. };
I ha
your MultiMap class does not have getKey() method which 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 place into the Application
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
Original 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...
-Original Message-
From: Vinh Tran [mailto:vinht@;processint
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"
pageContext.getServletConte
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 to work even though the bean mm
is sitt
Original 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...
-Original Message-
From: Vinh Tran [mail
Title: Map iterate problem
sorry...forgot the property
attribute...
property="mymap"
name="mm" scope="application">
-Original Message-From: Vinh Tran
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, November 12,
2002 10:40 AMTo: Struts Users Mailin
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
" <[EMAIL PROTECTED]>
Sent: Tuesday, 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
:
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 clas
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) {
truts-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 i
Atlanta, the "Open Minded 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
| 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:
I'm trying to compare the generated code between the sample application and
mine, but I haven't seen a
gt; From: Nelson, Tracy (ETW) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 4:01 PM
> To: Struts user list (E-mail)
> Subject: Newbie iterate problem
>
>
> I'm coming up to speed with Struts, and I can't seem to figure out the
> tag. I
Mailing List"
I'm coming up to speed with Struts, and I can't seem to figure out the
tag. I've got:
...
I keep getting a "cannot find bean logo in scope null" error. Do I have to
have an instance of the bean in the request? I've tried specifyin
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 mailto:[EMAIL PROTECTED]
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 mailto:[EMAIL PROTECTED]
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 people
-- Jim
"Galbreath, Mark" <[EMAIL PROTECTED]> writes:
> I sure seem to be having my share of problems with 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,
On Friday, April 26, 2002, 2:00:19 PM, Mark wrote:
GM> I sure seem to be having my share of problems with
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,
GM> etc.
---
From: 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 this
week
My form bean (EditCustomerForm) has a property that sets and gets a List of
Customer objects. These o
I sure seem to be having my share of problems with 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 objects and display
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
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
> "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 appe
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 h
> 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
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,
Some other UserAdmin class properties...
Hi,
got a wierd problem with the iterate tag. We've used it loads without
problem and can't see why it doesn't work in one situation.
this doesn't work:
the iterations start but throws the 'cannot find bean "myId" in scope null'
error
wierder still, this code works:
<%
Collecti
espond to "suhas" <[EMAIL 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 a
yman <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 4:26 PM
Subject: Re: Iterate problem - Any Solutions !! - SOLVED FINALLY
> It worked at last . No other change needed .
> This is how -
>
> type="example.testorder.OverDueOrderView">
>
>
>
>
It worked at last . No other change needed .
This is how -
- Original Message -
From: Jon.Ridgway <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 11:06 AM
Subject: RE: Iterate problem - Any Solutions !!
> Hi Suhas,
>
>
You might try Dave Hay's patch that supports indexed properties
directly.
< http://husted.com/about/struts/indexed-tags.htm >
suhas wrote:
>
> I still struggling with iterate problem still . Any solutions . I do
> have the proper getter methods in the OverDueOrde
:
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
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
t
MAIL PROTECTED] To: <[EMAIL PROTECTED]>
ltech.com> cc:
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
>
>
ltech.com> cc:
Sub
Hi I have a question
My Iterate tag goes like this
<% index++
;%>
Do I need **IndexId** here as an attribute in the
iterate Tag ??? 'cos In my form bean when showing the above table there is
a call to
public OverDueOrderView getView(int index)
{ System.out.println(" in si
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.
>
>
Here listOfSandwithces is the array attribute of
the actionForm bean which
- Original Message -
From: Moons Manuel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 1:43 PM
Subject: iterate problem
> Hello everyone.
>
> I
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 th
62 matches
Mail list logo