You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marcello Savino <Ma...@aldebra.com> on 2007/05/08 14:10:47 UTC

ArrayOfBeans interaction

Ciao

Let's say this is my jsp code:

<html:xhtml />
<html:html locale="true">
<body>
	<logic:iterate id="index" name="list" type="myBean">
		<html:text name="index" property="firstField"  />
		<html:text name="index" property="secondField"/>
	</logic:iterate>
</body>
</html:html>

Where "list" is a Bean array. The Bean class is "myBean" and has two
properties (firstField, secondField). I need the changes made in the
rows to be stored in the ActionForm.list[index].
You know the best way i can achieve this ?

Thanks in advance

Marcello

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


Re: ArrayOfBeans interaction

Posted by Nuwan Chandrasoma <my...@gmail.com>.
http://www.laliluna.de/struts-nested-iteration-tutorial.html

then this would help.

Thanks,

Nuwan


----- Original Message ----- 
From: "Marcello Savino" <Ma...@aldebra.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, May 08, 2007 1:27 PM
Subject: R: ArrayOfBeans interaction


Very intersting but (if is possible) i don't want to use a DynaActionForm .
I've tryied to modify my jsp code setting the property indexed="true" but 
the value in the bean remain unchanged. I think i'll need to add code on my 
ACtionForm but not idea about the code to add.


Marcello Savino
ALDEBRA S.p.A.
tel.  0461302441

-----Messaggio originale-----
Da: Nuwan Chandrasoma [mailto:mymailnot@gmail.com]
Inviato: martedì 8 maggio 2007 19.56
A: Struts Users Mailing List
Oggetto: Re: ArrayOfBeans interaction

http://www.developer.com/java/ejb/article.php/2233591

see if this helps you.

Thanks,

Nuwan

----- Original Message -----
From: "Marcello Savino" <Ma...@aldebra.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, May 08, 2007 12:10 PM
Subject: ArrayOfBeans interaction


Ciao

Let's say this is my jsp code:

<html:xhtml />
<html:html locale="true">
<body>
<logic:iterate id="index" name="list" type="myBean">
<html:text name="index" property="firstField"  />
<html:text name="index" property="secondField"/>
</logic:iterate>
</body>
</html:html>

Where "list" is a Bean array. The Bean class is "myBean" and has two
properties (firstField, secondField). I need the changes made in the
rows to be stored in the ActionForm.list[index].
You know the best way i can achieve this ?

Thanks in advance

Marcello

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


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


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


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


R: ArrayOfBeans interaction

Posted by Marcello Savino <Ma...@aldebra.com>.
Very intersting but (if is possible) i don't want to use a DynaActionForm .
I've tryied to modify my jsp code setting the property indexed="true" but the value in the bean remain unchanged. I think i'll need to add code on my ACtionForm but not idea about the code to add.


Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-----Messaggio originale-----
Da: Nuwan Chandrasoma [mailto:mymailnot@gmail.com] 
Inviato: martedì 8 maggio 2007 19.56
A: Struts Users Mailing List
Oggetto: Re: ArrayOfBeans interaction

http://www.developer.com/java/ejb/article.php/2233591

see if this helps you.

Thanks,

Nuwan

----- Original Message -----
From: "Marcello Savino" <Ma...@aldebra.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, May 08, 2007 12:10 PM
Subject: ArrayOfBeans interaction


Ciao

Let's say this is my jsp code:

<html:xhtml />
<html:html locale="true">
<body>
<logic:iterate id="index" name="list" type="myBean">
<html:text name="index" property="firstField"  />
<html:text name="index" property="secondField"/>
</logic:iterate>
</body>
</html:html>

Where "list" is a Bean array. The Bean class is "myBean" and has two
properties (firstField, secondField). I need the changes made in the
rows to be stored in the ActionForm.list[index].
You know the best way i can achieve this ?

Thanks in advance

Marcello

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


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


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


Re: ArrayOfBeans interaction

Posted by Nuwan Chandrasoma <my...@gmail.com>.
http://www.developer.com/java/ejb/article.php/2233591

see if this helps you.

Thanks,

Nuwan

----- Original Message ----- 
From: "Marcello Savino" <Ma...@aldebra.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, May 08, 2007 12:10 PM
Subject: ArrayOfBeans interaction


Ciao

Let's say this is my jsp code:

<html:xhtml />
<html:html locale="true">
<body>
<logic:iterate id="index" name="list" type="myBean">
<html:text name="index" property="firstField"  />
<html:text name="index" property="secondField"/>
</logic:iterate>
</body>
</html:html>

Where "list" is a Bean array. The Bean class is "myBean" and has two
properties (firstField, secondField). I need the changes made in the
rows to be stored in the ActionForm.list[index].
You know the best way i can achieve this ?

Thanks in advance

Marcello

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


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