This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Mulitple Image submit buttons question (code needed) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Mulitple Image submit buttons question (code needed)" Watch "Mulitple Image submit buttons question (code needed)" New topic
Author

Mulitple Image submit buttons question (code needed)

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
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??


A$HI$H
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4445
    
    5

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.


Junilu - [How to Ask Questions] [How to Answer Questions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mulitple Image submit buttons question (code needed)
 
Similar Threads
html:image - running into an infinite loop
Multiple buttons in a form
how to identify which button is pressed in struts!!!
html:submit tag with an image
How can I have global and specific html:errors?