Re: Logic Iterate problem:

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

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 I have a bean "cate

Nested iterate problem

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

Re: Help needed.....nested iterate problem

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

Help needed.....nested iterate problem

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

Re: Iterate problem

2003-11-16 Thread Mark Lowe
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); } ...

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
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

RE: checkbox and iterate problem

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

RE: checkbox and iterate problem

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

RE: checkbox and iterate problem

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

RE: checkbox and iterate problem

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

RE: checkbox and iterate problem

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

RE: checkbox and iterate problem

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

RE: checkbox and iterate problem

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

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 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

RE: Map iterate problem

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

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

RE: Map iterate problem

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

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" pageContext.getServletConte

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 to work even though the bean mm is sitt

Re: Map iterate problem

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

RE: Map iterate problem

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

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

Re: Map iterate problem

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

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 clas

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: Newbie iterate problem

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

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: Nelson, Tracy (ETW) [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 12, 2002 5:03 PM > To: 'Struts Users Mailing List' > Subject: RE: Newbie

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: I'm trying to compare the generated code between the sample application and mine, but I haven't seen a

RE: Newbie iterate problem

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

Re: Newbie iterate problem

2002-08-12 Thread Tim T. Young
Mailing List"

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 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

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 mailto:[EMAIL PROTECTED]

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 mailto:[EMAIL PROTECTED]

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-26 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 people

Re: Iterate Problem

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

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 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.

RE: Iterate Problem

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

Iterate Problem

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

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

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

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 appe

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 h

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

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, Some other UserAdmin class properties...

Iterate problem

2001-08-21 Thread Nathan Coast
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

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

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

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

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

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

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

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

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

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

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 t

Re: Iterate problem

2001-07-10 Thread guido . roth
MAIL PROTECTED] To: <[EMAIL PROTECTED]> ltech.com> cc:

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 > >

Re: Iterate problem

2001-07-10 Thread guido . roth
ltech.com> cc: Sub

Iterate problem

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

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. > >

Re: iterate problem

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

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 th