• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mulitple Image submit buttons question (code needed)

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic