Logic Iterate problem:

2003-11-24 Thread Raman
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

Re: Logic Iterate problem:

2003-11-24 Thread Jeff Kyser
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

Iterate problem

2003-11-16 Thread ZYD
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

RE: checkbox and iterate problem

2003-02-27 Thread Phillip Qin
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

checkbox and iterate problem

2003-02-26 Thread nkstruts
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; //

RE: checkbox and iterate problem

2003-02-26 Thread pqin
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

RE: checkbox and iterate problem

2003-02-26 Thread nkstruts
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

RE: checkbox and iterate problem

2003-02-26 Thread pqin
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

RE: checkbox and iterate problem

2003-02-26 Thread Neal
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

RE: checkbox and iterate problem

2003-02-26 Thread pqin
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

RE: checkbox and iterate problem

2003-02-26 Thread Neal
:[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

RE: checkbox and iterate problem

2003-02-26 Thread Neal
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

RE: Map iterate problem

2002-11-13 Thread Sukhenko, Mikhail (Contr)
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

Map iterate problem

2002-11-12 Thread Mark Ayad
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) {

RE: Map iterate problem

2002-11-12 Thread Hookom, Jacob John
: 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

Re: Map iterate problem

2002-11-12 Thread Mark Ayad
, 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

RE: Map iterate problem

2002-11-12 Thread Vinh Tran
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

Re: Map iterate problem

2002-11-12 Thread Mark Ayad
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

Re: Map iterate problem Application Scope

2002-11-12 Thread Mark Ayad
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

Re: Map iterate problem Application Scope

2002-11-12 Thread Robert
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

RE: Map iterate problem

2002-11-12 Thread Vinh Tran
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

Re: Map iterate problem Application Scope

2002-11-12 Thread Mark Ayad
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

Newbie iterate problem

2002-08-12 Thread Nelson, Tracy (ETW)
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

Re: Newbie iterate problem

2002-08-12 Thread Tim T. Young
Users Mailing ListSubject: Newbie iterate problem

RE: Newbie iterate problem

2002-08-12 Thread James Mitchell
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

RE: Newbie iterate problem

2002-08-12 Thread Nelson, Tracy (ETW)
| 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

RE: Newbie iterate problem

2002-08-12 Thread James Mitchell
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

RE: Newbie iterate problem

2002-08-12 Thread James Mitchell
-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

Please help w Iterate problem

2002-07-24 Thread Stan Baranek
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

Iterate problem: set ArrayList String value

2002-07-24 Thread Stan Baranek
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

Re: DynaActionForm Struts iterate Problem

2002-05-21 Thread emmanuel.boudrant
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

Re: Iterate Problem

2002-04-27 Thread Arron Bates
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

Iterate Problem

2002-04-26 Thread Galbreath, Mark
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

RE: Iterate Problem

2002-04-26 Thread Chris Cool
: 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

Re: Iterate Problem

2002-04-26 Thread Rick Reumann
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,

Re: Iterate Problem

2002-04-26 Thread Jim Crossley
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

RE: Iterate problem

2002-03-18 Thread Yu, Yanhui
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

Iterate problem

2002-03-15 Thread Sanjay Choudhary
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

iterate problem

2002-03-10 Thread Oliver Kiessler
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

Re: iterate problem

2002-03-10 Thread David M. Karr
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

Re: iterate problem

2002-03-10 Thread Oliver Kiessler
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

relatively complicated iterate problem.

2001-11-27 Thread Hudayioglu, Fehmi
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

Re: relatively complicated iterate problem.

2001-11-27 Thread Joey Gibson
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

Re: Iterate problem

2001-07-10 Thread guido . roth
: Subject: Iterate problem 10.07.2001

Re: Iterate problem

2001-07-10 Thread suhas
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

Re: Iterate problem

2001-07-10 Thread guido . roth
] To: [EMAIL PROTECTED] ltech.com cc: Subject: Re: Iterate problem

Iterate problem - Any Solutions !!!!!!

2001-07-10 Thread suhas
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

RE: Iterate problem - Any Solutions !!!!!!

2001-07-10 Thread Jon.Ridgway
: 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

Re: Iterate problem - Any Solutions !!!!!! - SOLVED FINALLY

2001-07-10 Thread dhay
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

iterate problem

2001-07-09 Thread Moons Manuel
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

Re: iterate problem

2001-07-09 Thread suhas
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

RE: iterate problem

2001-07-09 Thread Niall Pemberton
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

Iterate problem

2001-07-09 Thread suhas
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" %'