• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

form with submit option

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all I have a form that has a bunch of items with each item being associated with a checkbox. In the past I was using the checkboxes as a manner of deleting each of the items, but I realize now that is inadequate for what I need. I need to be able to edit the items or delete them depending on that choice. Can anyone suggest any nice manners in which to accomplish this ?
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
use a dispatch action and use javascript to set the method name on the form (to tell dispatch action which method to execute) then have your javascript submit the form. (the edit button would set the method to edit and the delete button would set the method to delete).
 
A knibbs
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the suggestion but is there anywhere that might have some sample code of something similiar ? I'm still learning how everything interacts in struts, and unfortunately I learn by seeing now by explanation.

If not thanks for the help so far.
 
reply
    Bookmark Topic Watch Topic
  • New Topic