I have a problem when developing the application using
Struts.
We have a list page, which shows 50 records in a page. There is a checkbox for each record, so that the user can select some message to perform some actions.
If the user checked one record, and click update, the
JSP for single update will be shown. If the user checked more than one records, and click update, the JSP for multiple update will be shown.
Since the single update, and multiple update contains some difference, for example, for single update, the user can update any fields of the record. But for multiple update, the user canNOT update the fields, instead, he can add some attachments, and change the overall status of the record
S.
Thus, the data captured by 2 views in fact are different, but as both of them perform the update, I group them into the update action.
However, can I do that? Since I need to map an ActionForm to each .do action, but now, I need two, so, how can I do that?
Or simply I should seperate the .do action into two?
Please advice.
Nick
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)