struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravi_eze <>
Subject conversion is not happening for nested properties of action class; (XW-297
Date Sat, 22 Dec 2007 03:51:03 GMT


issue: An action class has a dto(say EmployeeDto) in it. In a particular
scenario (when object to string is happening) we are finding that
dto-conversion.porperties ( is being
called instead of This shouldn't happen
according to documentation.

i am trying to write a custom converter for Long in struts2 framework which
internally uses xwork framework for the same. This class contains dto object
which furter has longFieldName as long data type. I created the actionname file which contains
dto.longFieldName=path.LongConverter entry in it. The LongConverter extends
StrutsTypeConverter which internally extends DefaultCOnverter .

What i observed is that stringToObject method of LongCOnverter is being
called by XWorkConverter but for objectTOString LongConverter is not being
called! After sufficient investigation and debugging the source code i
discovered that the XWorkConverter is expecting dto-conversion.properites
file for ObjectToString conversion and for
stringToObject conversion. I am not understanding as to why this is
happening. The XW-297 issue puts forward the same issue but it seems like
this is working partially now!

any ideas where i am going wrong? pl: help.

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message