Exception thrown : javax.servlet.ServletException: BeanUtils.populate
This error occurs as Struts is trying to populate the properties in your A
ctionForm. 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 A
ctionForm. For example, if you have a property of type java.util.Date, you'll get this error because Struts (or more accurately, the B
eanUtils) 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