You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Graham <dg...@hotmail.com> on 2002/11/05 19:22:03 UTC
Fwd: indexing items in an ActionForm
This is a user's list question, I'll forward it over there for you.
David
>From: Ashwin Sarin <as...@yahoo.com>
>Reply-To: asarin@alumni.uwaterloo.ca
>To: struts-dev@jakarta.apache.org
>CC: ashwinsarin@yahoomail.com
>Subject: indexing items in an ActionForm
>Date: Tue, 5 Nov 2002 10:18:18 -0800 (PST)
>
>I am binding my HTML form to the following ActionForm
>bean(only showing interface):
>
>public MyForm extends ActionForm {
> public void setPartDescription( String s );
> public String getPartDescription( );
>}
>
>I'd like to list my parts in a table under the same
>form, so i'd rather use a Form such as the following:
>
>public MyForm extends ActionForm {
> public void setPartDescription( int index, String
>s );
> public String getPartDescription( int index );
>}
>
>Is there any way to get struts to bind to a bean like
>this? Basically i'd like the MyForm form to
>internally contain a collection of Parts and set the
>Description(or other properties) based on the index
>passed in to the set and get methods of each property.
>
>thanks,
>Ashwin
>
>
>__________________________________________________
>Do you Yahoo!?
>HotJobs - Search new jobs daily now
>http://hotjobs.yahoo.com/
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
_________________________________________________________________
Get a speedy connection with MSN Broadband. Join now!
http://resourcecenter.msn.com/access/plans/freeactivation.asp
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>