You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pr...@ubsw.com on 2002/10/25 15:33:54 UTC

DynaActionForm and indexes

I'd like to display a table of data (several columns and rows). It is easiest to describe what I want using pseudo-code:

	<Iterate over users objects>
		<textbox: users.name>
		<combobox: users.status>
	<end iterate>

Where "users" is a collection. Users[i].name returns a non-primitive based object whose toString() doesn't give a displayable value. In other words, I'd have to catch the request for user[i].name and return a string.

Sample output:

	Fred   Single
	Ann 	Married
	Bob	Married

	
I get the impression DynaActionForms are useful since they have a method (public Object get(String name, int index)) that I can override and return a string. However, I cannot see under what circumstances this is called. Some sample code/pointer would be appreciated.

Or any other suggestions?

TIA

Praful
 

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>