File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
multiple image buttons
Joined: Jan 09, 2005
Mar 05, 2007 03:13:00
I have a situation where i have to place 4
submit buttons and call the same action,by knowing which image button is pressed ,particular code must be executed.
To my knowledge only one <html:image scr="" property="submit"> can be placed in a page.for multiple action i can use DynamicAction..
Give me a example fopr my siuation....
Joined: Feb 15, 2005
Mar 05, 2007 08:45:00
Lookup the class "ImageButtonBean" in the
Javadoc. You will see that if you define properties in ActionForm of this type and assign each property to a particular button, you will be able to tell which image button was pressed.
I agree. Here's the link:
subject: multiple image buttons
Assigning Key Values to Multiple Submit Buttons
Multiple Submit Buttons?
multiple submit buttons
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015