Sashi, your person bean must have getName(), setName() and getPhoneNo(),
setPhoneNo().
Everybody: I haven't come across the html:taglib indexed property
before. This seems to do what nested: tags do - is this functional overlap?
Generally with JST taglib as well, there seems to be a wide
if you switch over to nested:iterate, the whole id thing goes away
and the property and type attributes are sufficient.
-john
-Original Message-
From: John Greenhill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 3:37 PM
To: Struts Users Mailing List
Subject: RE: what setters do
To: Struts Users Mailing List
Subject: RE: what setters do i implement in an
indexed tag
--NewBiequestion
Assuming you're NOT using the lazy initialization,
you could do it like
this...
1) your iterate will need to specify the type of the
nested class:
logic:iterate id=person
PROTECTED]
Sent: Wednesday, June 11, 2003 3:37 PM
To: Struts Users Mailing List
Subject: RE: what setters do i implement in an indexed tag
--NewBiequestion
Assuming you're NOT using the lazy initialization, you could do it like
this...
1) your iterate will need to specify the type of the nested
setters do i implement in an indexed tag --NewBie
question
Sashi, your person bean must have getName(), setName() and getPhoneNo(),
setPhoneNo().
Everybody: I haven't come across the html:taglib indexed property
before. This seems to do what nested: tags do - is this functional
overlap
, then Arron contributed nested
and life got easier. Stick with it and don't go backwards.
-john
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 11:52 PM
To: Struts Users Mailing List
Subject: Re: what setters do i implement in an indexed tag
Assuming you're NOT using the lazy initialization, you could do it like
this...
1) your iterate will need to specify the type of the nested class:
logic:iterate id=person name=myFormBean property=personList
type=com.mydom.myproject.struts.Person
Where the Person class has just the standard
Message-
From: John Greenhill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 3:37 PM
To: Struts Users Mailing List
Subject: RE: what setters do i implement in an indexed tag
--NewBiequestion
Assuming you're NOT using the lazy initialization, you could do it like
this...
1) your iterate
'hacked'
version and Dave's original code is. Please enlighten me.
TIA
Marcel
-Oorspronkelijk bericht-
Van: Warwick Boote [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 25 juli 2001 17:13
Aan: [EMAIL PROTECTED]
Onderwerp: RE: what setters do i implement in an indexed tag ?
Here
in the ArrayList.
Hope this helps.
Stephen
- Original Message -
From: Deadman, Hal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 12:59 PM
Subject: RE: what setters do i implement in an indexed tag ?
| Ignore my previous post because I was mistaken. You don't need a
setXYZ
To: [EMAIL PROTECTED]
Subject: RE: what setters do i implement in an indexed tag ?
Hi,
You need 3 methods, a getter and a setter for the Vector (or other
arraytype object) and a getter for single object in your arraytype
object, i.e., getObject(int inx){ return myVector.elementAt(inx) }
Just like
In the indexed tags write up at
http://www.husted.com/about/struts/indexed-tags.htm, it only mentions the
two types of get methods required in the action form. It doesn't mention the
setters that are required. It looks like the getParameterList() method is
only used by the iterate tag. To
To: [EMAIL PROTECTED]
Subject: RE: what setters do i implement in an indexed tag ?
In the indexed tags write up at
http://www.husted.com/about/struts/indexed-tags.htm, it only mentions the
two types of get methods required in the action form. It doesn't mention the
setters that are required. It looks like
that out!
^terp
-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 5:03 PM
To: [EMAIL PROTECTED]
Subject: RE: what setters do i implement in an indexed tag ?
In the indexed tags write up at
http://www.husted.com/about/struts/indexed-tags.htm
14 matches
Mail list logo