<form-property name="lines" type="com.test.Line[]" size="100"/>
[EMAIL PROTECTED] wrote:
Hi Rick,
How to re-set the size of the array in the form? Can you pls point me to some
example.
Regds
Ravi
-----Original Message-----
From: Ravi Vedala (WT01 - FINANCE BANKING & SERVICES)
Sent: Wednesday, August 18, 2004 12:30 PM
To: [EMAIL PROTECTED]
Subject: RE: DynaActionForm java.lang.ArrayIndexOutOfBoundsException
Thanks Rick.
Right now the form is in session scope.
Giving the action mapping and the form definition for your reference :
<form-bean name="myForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="lines" type="com.test.Line[]"/>
<form-property name="lastSlotId" type="java.lang.String" />
<form-property name="campaignId" type="java.lang.Integer" /> </form-bean>
Action mapping is :
<action path="/8200/123"
type="com.test.myAction"
name="MyForm"
scope="session"
input="/myJSP.jsp">
<forward name="success" path="/8200/123.do"/>
</action>
Regds
Ravi
-----Original Message-----
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 12:20 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException
[EMAIL PROTECTED] wrote:
Thanks Anirudh.
Tried, but didn't work. Same issue.
Reinitialize the array with an adequate size in your form's reset method
(or set your form to use Session scope).
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Confidentiality Notice
The information contained in this electronic message and any attachments to this
message are intended for the exclusive use of the addressee(s) and may contain
confidential or privileged information. If you are not the intended recipient, please
notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of
this message and any attachments.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Confidentiality Notice
The information contained in this electronic message and any attachments to this
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL
PROTECTED] immediately
and destroy all copies of this message and any attachments.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]