Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Error 500: BeanUtils.populate

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey there!
In a JSP, I've got a form with a submit button and an image button.
I used taglibs for that (<html:submit ...> and <html:image ...> .
I'm also using struts.
When I click the submit button, the form action will be called and the data of the form is saved in the Form bean.
When I click the image button, I will get an error message "Error 500: BeanUtils.populate" displayed in the browser window.
The image button also passes the mouse coordinates to the FormBean (something like myeditbutton.x, myeditbutton.y).
The submit button works because its property name is the same as the variable name in the FormBean. But the image button only (or also) sends the coordinates of the mouseclick. How can I get the real "value" as with the submit button?
I think this is a very known problem because: I cannot use image buttons. That can not be true =)
Thanks for any help!
Praiser
 
Meyer Florian
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I found it:
https://coderanch.com/t/46837/Struts/identify-which-button-pressed-struts
Praiser
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic