Yes, imagine I have a date field in my html form and also it is a mandatory field. Now when I validate it, I have to convert it to a Date type in my ActionForm calss. When the validation succeeds, I have to send it to the TO where I need to convert the String to a Date format in my Action class. So I was thinking that there might be a method something like BeanUtils and so on...?
Joined: Feb 15, 2005
I'm not aware of any Struts utility that will do this. One of the weaknesses of Struts 1 is the fact that it offers little help in converting from Strings to other data types. You will find the support for this much greater in Struts 2.