You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by James Howe <jw...@allencreek.com> on 2001/05/14 22:16:43 UTC

Editing tabular data

I'm currently in the process of coding a Struts-based JSP page which will 
let my user edit a table of values.  I started out by creating a read-only 
display of values  using the logic:iterate tag and bean:write tags.  The 
object associated with the iterate tag answers a collection of beans and I 
have several bean:write tags which are used to display the properties of 
the bean.  It looks something like this:

<logic:iterate id="bean" name="beanCollector" property="beanCollection">
    <tr>
	<td width=70><bean:write name="bean" property="prop1" filter="false"/></td>
	<td width=70><bean:write name="bean" property="prop2" filter="false"/></td>
	[.... more attributes ...]
    </tr>
</logic:iterate>

I'm now somewhat at a loss as to how to construct a screen which will let 
the user update any and all fields in the table and save them.	Can anybody 
provide and example of how I might go about building a page which can edit 
a table of information?

Thanks.


RE: Editing tabular data

Posted by Niall Pemberton <ni...@btInternet.com>.
There are quite a few messages in the archive about this:

   http://www.mail-archive.com/struts-user%40jakarta.apache.org/

A couple of messages from a recent thread:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg07656.html
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg07767.html

Niall

> -----Original Message-----
> From: James Howe [mailto:jwh@allencreek.com]
> Sent: 14 May 2001 21:17
> To: struts-user@jakarta.apache.org
> Subject: Editing tabular data
>
>
> I'm currently in the process of coding a Struts-based JSP page which will
> let my user edit a table of values.  I started out by creating a
> read-only
> display of values  using the logic:iterate tag and bean:write tags.  The
> object associated with the iterate tag answers a collection of
> beans and I
> have several bean:write tags which are used to display the properties of
> the bean.  It looks something like this:
>
> <logic:iterate id="bean" name="beanCollector" property="beanCollection">
>     <tr>
> 	<td width=70><bean:write name="bean" property="prop1"
> filter="false"/></td>
> 	<td width=70><bean:write name="bean" property="prop2"
> filter="false"/></td>
> 	[.... more attributes ...]
>     </tr>
> </logic:iterate>
>
> I'm now somewhat at a loss as to how to construct a screen which will let
> the user update any and all fields in the table and save them.
> Can anybody
> provide and example of how I might go about building a page which
> can edit
> a table of information?
>
> Thanks.
>
>