Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTML form submission  RSS feed

 
Dwarka Prasad
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • 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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Dwarka", please check your private messages.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!