You should have one jsp called edit.jsp that is the add, edit and delete form. I wouldn't use checkboxes with buttons because it's too much trouble. Put links next to each row that say Add - Edit - Delete where the add link points to /app/getEditForm.do?action=add. Then your GetEditFormAction.perform() method will get the action attribute and handle accordingly. For example, just forward to edit.jsp for add, and prefill form data and forward to edit.jsp for edit.
Dave > >Hi, > >I have to develop a website using struts, most all my webpages will be add, >change, delete, display type. > >Like, i will show about 20 records per page, each one will have a checkbox, >there will be 3 buttons on bottom.. Add, Change, Delete, > >so if the user clicks add, i will show him add screen and add the record, >if user selects one record and presses change i will show the user data >where he can change and same in delete.. > >now how can i decide on the action class on my first display page, also the >form tag, so when the user clicks add direct him to add.jsp, if change or >delete to change or delete.jsp with the selected value and also have >validtion like user cannot use change unless he clicks one row, also cannot >click more then one row for change etc. > > > >Any comments will be appreciated > > > > >A$HI$H > > >--------------------------------- >Do You Yahoo!? >Yahoo! Finance - Get real-time stock quotes _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>