struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michael.korol...@ps.ge.com
Subject RE: [Q] how to edit tables?
Date Wed, 26 Mar 2003 20:27:20 GMT
would be nice if any one give me an example how to do it. Pls

in format like as:

1. Action class:

// set the list
...
ArrayList theList = getTheList(); // get list of beans
...
myForm.setTheList(theList);
...

// get (read from JSP / Form) the list
???
...

2. MyForm class

...
private ArrayList theList;
getTheList() ...
setThelist(ArrayList) ...
...

3. JSP
...
<logic:iterate ???
???
...
</logic:iterate>
...

Best Regards.
Michael.


-----Original Message-----
From: mike.witt@honeywell.com [mailto:mike.witt@honeywell.com]
Sent: Wednesday, March 26, 2003 12:03 PM
To: struts-user@jakarta.apache.org
Subject: RE: [Q] how to edit tables?


ActionForms can store and post arrays of data.  If you did it that way, each
row would have a subscript in your action for processing.

-----Original Message-----
From: michael.korolyov@ps.ge.com [mailto:michael.korolyov@ps.ge.com]
Sent: Tuesday, March 25, 2003 1:12 PM
To: struts-user@jakarta.apache.org
Subject: RE: [Q] how to edit tables?


Thank you.

how to name each input? how to use prefix?
then how I'll know in Form and Action classes about which rows some values
belong?

tnx

Best Regards.
Michael.


-----Original Message-----
From: David Graham [mailto:dgraham1980@hotmail.com]
Sent: Tuesday, March 25, 2003 9:37 AM
To: struts-user@jakarta.apache.org
Subject: Re: [Q] how to edit tables?


Just make each field a text box so they can update the records' info.  At 
the bottom of the table have a "Save Changes" button that updates all the 
records.

David



>From: michael.korolyov@ps.ge.com
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: struts-user@jakarta.apache.org
>Subject: [Q] how to edit tables?
>Date: Tue, 25 Mar 2003 12:40:24 -0500
>
>Hello,
>
>I know how to show a table by using <logic:iterate>
>but , how to edit content of this table? on the same page, without another
>page!
>
>I know how to do it by adding a link to each row / record that then run
>another - edit page just for this record.
>User need to stay on the same page and be able edit any rows (records).
>
>Thank you for any examples.
>
>Best Regards.
>Michael.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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

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

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

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


Mime
View raw message