This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mulitple Image submit buttons question (code needed)

 
ashish kulkarni
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I read this article on husted.com site
http://husted.com/struts/tips/001.html
But some how not working for me,
Has any one tried it, can u please post the code of
your form bean, action bean, struts-config definition,
your jsp where u have defined the image button,
Also has any one tried this to do with
DynaValidatorForm instead of defining a custom form
if yes how??
 
Junilu Lacar
Bartender
Pie
Posts: 7333
45
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used this method just last week. To make it work right though, I had to add a reset method to the ImageButtonBean which simply sets both x and y to null and then invoke the ImageButtonBean.reset() for all image buttons on the form in the form.reset() method.

I don't think there's anything special you need to do in struts-config.xml if you're using regular ActionForms. I don't know what changes you'd have to make if you use a DynaValidatorForm instead.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic