• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple image buttons

 
sreenivas jeenor
Ranch Hand
Posts: 125
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a situation where i have to place 4 image 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....

Thanks
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lookup the class "ImageButtonBean" in the Struts 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic