struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: Dyanamic form
Date Tue, 08 Jun 2004 09:16:29 GMT
Take a look at the lazyList method in ListUtils (in commons-collections). It
should provide that for which you seek.
[http://jakarta.apache.org/commons/collections/api/org/apache/commons/collec
tions/ListUtils.html]


-----Original Message-----
From: nikhil walvekar [mailto:walvekarnikhil@yahoo.co.in]
Sent: Tuesday, 8 June 2004 17:09
To: Struts Users Mailing List
Subject: Re: Dyanamic form


Hi, Shoaib

In getter method of arrayList you must check whether index is within bounds
or not.
if not then you have to add new object (blank) to arrayList,if possible i
will send send utility class for this.

Nikhil.

shoaibm@vmoksha.com wrote:
Hi Nikhil,

thanks a lot for your help.But we have tried thyis solution.The problem is
I need to create the ArrayList with some size which is defined at the
server end like in your action class or Struts-config.But If i add rows
dynnamically at the client add then it throws ArrayIndexOutofBound error.

Please advice .Can you send me some sample code of it.I would really
appreciate your help.

Regards
Shoaib

****************************************************************************
**
The information contained in this message is legally privileged and
confidential information intended only for the use of the addressed
individual or entity indicated in this message (or responsible for delivery
of the message to such person). It must not be read, copied, disclosed,
distributed or used by any person other than the addressee. Unauthorized
use, disclosure or copying is strictly prohibited and may be unlawful.
Opinions, conclusions and other information on this message that do not
relate to the official business of any of the constituent companies of the
vMoksha shall be understood as neither given nor endrosed by the Group. If
you have this message in error, you should destroy this message and kindly
notify the sender by e-mail.
****************************************************************************
**



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

Yahoo! India Matrimony: Find your partner online.


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


Mime
View raw message