I am trying to use to iterate
through a list of order items.I cannot get it to work. I have seen several
emails about patches for handling nested and indexed properties...
OrderForm consists of an ArrayList of items.
I have added indexed getters ArrayList
getItems() and OrderItem g
If I understand the situation, you might be able to do this with an array
of orderItem beans (orderItems), with getName and getValue methods.
form:text should then call getName and getValue for the name and value of
each text field.
getName might use and internal counter
ted <[EMAIL PROTECTED]>To:
Struts List <[EMAIL PROTECTED]>Date:
Tuesday, December 26, 2000 4:32 PMSubject: Re: Help:
and form input fields
If I understand the situation, you might be able to do this with an array
of orderItem beans (orderItems), with getName and getValue method
an indexed/nested property name
is to use the tag itself.
I am using the struts 12/15 build
Thanks,
-Chandan
-Original Message-From:
Ted Husted <[EMAIL PROTECTED]>To:
Struts List <[EMAIL PROTECTED]>Date:
Tuesday, December 26, 2000 4:32 PMSubjec
AIL PROTECTED]>Date:
Wednesday, December 27, 2000 9:50 AMSubject: Re: Help:
and form input fields
A clear statement of what you need to accomplish, without posing a
particular implementation, might be helpful. I'm not exactly sure what it is
you need to do. My first guess
Are you trying to do something like this order form
(Javascript)
https://public.wxxi.org/schedules/fm/voice-order.htm
This only shows one item, but the idea is that
there would be one line for each item in a small inventory.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom S
Yes...same idea...
-Original Message-From:
Ted Husted <[EMAIL PROTECTED]>To:
Struts List <[EMAIL PROTECTED]>Date:
Wednesday, December 27, 2000 10:36 AMSubject: Re: Help:
and form input fields
Are you trying to do something like this order form
: Help:
and form input fields
Are you trying to do something like this order
form (Javascript) https://public.wxxi.org/schedules/fm/voice-order.htm This
only shows one item, but the idea is that there would be one line for each
item in a small inventory.
-- Ted Husted, Husted dot Com, Fairport NY US
rs would be parsed.
I have just started working on this problem.
Mishkin.
Chandan Kulkarni wrote:
Yes...same idea...
-Original Message-
From: Ted Husted <[EMAIL PROTECTED]>
To: Struts List <[EMAIL PROTECTED]>
Date: Wednesday, December 27
How does your orderform bean look? What are the method signatures for the
items property?
Thanks,
Mishkin.
Chandan Kulkarni wrote:
I have this working now... Here's
how I got this working I'm including my BeanUtils.java.Here's
how my jsp looks (the does not work as expected...I had
to use
My orderform bean has
public OrderItem getItems(int
index ) // this is used during the
setProperty... public ArrayList
getItems()
// This is used by the iterate tag
public void setItems(int index,OrderItem str)
public void setItems(ArrayList arr)
My OrderIt
11 matches
Mail list logo