I want to accomplish something which is similar to what is shown in the example
http://www.scioworks.net/devnews/strutsDistilled/updates/update-030401/indexedAttr.html In here he talk abt indexed properties . Could not understand what he is trying to do here You form bean class will look like this: public class MyFormBean extends ActionForm { private List fPersonList; public List getPersonList() { ... } public void getPerson(int index) { ... } } Could you give me more insight on this Do we have to code the "Person" class with phoneNo and name properties, or does that happen somehow automatically? And how does this work: public void getPerson(int index) { ... } Shouldn't that return a Person object, or at the very least an Object, rather than void? Thanks >>> [EMAIL PROTECTED] 06/10/03 11:50AM >>> I wrote a long FAQ description in the documentation about this, and I'm still not sure I can adequately answer this question, as it can be somewhat confusing. You could read that at < http://jakarta.apache.org/struts/faqs/index.html>. Select the "indexed properties" link. Basically, you use indexed tags when you want the resulting "name" of an HTML component to reference array indexes, so you can move values in and out of a collection/array in your form bean instead of scalars. The indexed tags work along with either the "logic:iterate" or "c:forEach" tags. > -----Original Message----- > From: Sashi Ravipati [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2003 8:38 AM > To: [EMAIL PROTECTED] > Subject: What are "indexed" struts-html tags and how to use them? > > Can somebody explain how these work, or is there any example of this. > > Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]