Hi,
I didnt understand your problem very well.But some points U should know.

> I use the log4j, and the constructor of the ActionForm isn't 
> called. The setXXXX for the ArrayList isn't called too.

Struts uuses Class.forName() .newInstance() to instantiate new form objects.
So the default constructor will be called in this case.So Any lists etc u need 
to set must Be initialised in the default constructor.

-----Original Message-----
From: Sri.Sankaran [mailto:Sri.Sankaran@;sas.com]
Sent: Friday, November 15, 2002 3:18 PM
To: struts-user
Subject: RE: ArrayList disappeared in ActionForm


Intermixed...

> -----Original Message-----
> From: M�guel �ngel Mulero Mart�nez 
> [mailto:miguel-angel.mulero@;mad.tecsidel.es] 
> Sent: Friday, November 15, 2002 2:03 AM
> To: Lista Struts
> Subject: ArrayList disappeared in ActionForm
> 
> 
> Hi all! I've got a little problem with Struts 1.0.2.
> 
> I've got an ActionForm with two objects: one for save the 
> values of a HTML form, and an ArrayList with Strings to print 
> in the HTML form.

I don't follow.  Why do you need separate objects for display and for capture.  
That  is the purpose of the ActionForm.

> 
> The HTML form inits well, reading the values (object and 
> ArrayList) from the ActionForm created in an Action before. 
> When I press the submit button, the reset function is called 
> and afterwards the object is updated with the new values. My 
> problem is that if I read the ArrayList, it is null.

How do the objects in your ActionForm map to your ArrayList.  Need to see some 
code.  Send appropriate sections of your JSP, form-bean (ActionForm) and Action 
class.

> 
> I use the log4j, and the constructor of the ActionForm isn't 
> called. The setXXXX for the ArrayList isn't called too.
> 
> Where is my ArrayList? Why it's null?
> 
> Thanks to all!
> 
> Miguel
> 

Sri

> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:struts-user-help@;jakarta.apache.org>
> 
> 

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



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

Reply via email to