This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

form with submit option

 
A knibbs
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • 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 ?
 
Nick Williamson
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic