aspose file tools*
The moose likes Struts and the fly likes Assigning Key Values to Multiple Submit Buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Assigning Key Values to Multiple Submit Buttons" Watch "Assigning Key Values to Multiple Submit Buttons" New topic
Author

Assigning Key Values to Multiple Submit Buttons

John Olston
Greenhorn

Joined: Jan 08, 2005
Posts: 3
How can set a key value on each submit button. I have a table that contains
multiple submit buttons. When one of those submit buttons is clicked, I need to pass the key value of the submit button that will be used to call a business service to retrieve data for that key. Any ideas? Thanks.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30512
    
150

John,
Have each submit button call a javascript function with a distinct value. That function can set a hidden field with your key value and the hidden field is part of the form.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Assigning Key Values to Multiple Submit Buttons