struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sashi Ravipati" <Ravipa...@michigan.gov>
Subject RE: What are "indexed" struts-html tags and how to use them?
Date Tue, 10 Jun 2003 20:38:22 GMT
Any ideas how to make this to work

>>> sandeep_takhar@yahoo.com 06/10/03 03:24PM >>>
There is an error in that

getPerson(int index) should return a Person object or
something with name etc.

sandeep
--- Sashi Ravipati <RavipatiS@michigan.gov> wrote:
> 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
> 
> 
> >>> David.Karr@wamu.net 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:RavipatiS@michigan.gov]
> > Sent: Tuesday, June 10, 2003 8:38 AM
> > To: struts-user@jakarta.apache.org
> > 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:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message