• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

HTML form submission

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I need to submit a HTML form with data's for three different actions Viz, 1. Updation 2. Deletion 3. View

This HTML form contains a table of data resulted from a search. With this data i must be able to perform any of the above mentioned three actions. Using a submit button can solve only one of the three actions.

Is there any way to recognize the resultant flow in the Action class so that i can perform the corresponding action.

Thanks on advance...

Regards,
Dwarka
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can create a button for each of the actions, then check the button name/value in the methos that's handling it to determine which action is required. If you do not want to use more than 1 button, then you can create an option button that will correspond to each of the possible actions, or even a hidden field, and then set it to an appropriate action before the submit.
[ December 26, 2007: Message edited by: Bosun Bello ]
 
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Dwarka", please check your private messages.
 
reply
    Bookmark Topic Watch Topic
  • New Topic