You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Viggio, Alex" <Al...@globalcrossing.com> on 2002/12/11 20:39:56 UTC

Multiple submits in form with same display label

The UI spec for a page I must implement in a Struts 1.0.2 app calls for
multiple submit buttons on the form all having the label "Edit" to indicate
a desire to modify specific sets of data for a large data object. Other than
the submit buttons, the page does not have any read/write form controls,
although I was planning on re-using an existing ActionForm for the many
display values on the page using <bean:write>.

Still being a Struts 1.0.2 newbie, I thought of two ways to accomplish this:

1. Assign different "property" attributes in each of these Edit buttons'
<html:submit> tags and handle this mess in the Action.

2. Specify multiple HTML forms in the page with different target actions
using DispatchAction or a similar approach (although I haven't tried using
multiple <html:form> tags on one page so I might end up using HTML <form>
tags if that works)

Is there a better way to accomplish this in 1.0.2?

Thanks,
- Alex

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