Bookmark Topic Watch 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • Piet Souris
  • Jj Roberts
  • fred rosenberger
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Exception thrown : javax.servlet.ServletException: BeanUtils.populate

This error occurs as Struts is trying to populate the properties in your ActionForm from the data entered into an HTML form. It means that Struts is unable to convert the String that is coming from the HTML form into whatever data type you specified for a property in your ActionForm. For example, if you have a property of type java.util.Date, you'll get this error because Struts (or more accurately, the BeanUtils) can't convert a String into a java.util.Date object. The safest way to avoid this error is to make all the properties of an ActionForm Strings and then convert them into other data types later on in your model classes.

Return to StrutsFaq
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic