Hi
    I had a weird problem earlier where, if my pojo had a variable of type
"Date", struts was looking for setVariable(String) instead of a
setVariable(Date) for browser locale = es_Cl. I wrote a custom type handler
to solve this problem. Now am stuck with the same problem where I have a
list<Object> into which Struts needs to set the date.

>From the documentation, I added the Element_variable, KeyProperty_variable
and CreatIfNUll_variable, variable=Custom Type Handler into my property
file. This is what happens

1. ) Struts by defaults looks for convertToString method in my converter
class.
2.) When i set my debug, the setVariable is first called and then is the
converter invoked. To solve problem1, I added convertValue and made it
madatorily convert it to date and return that instead of a string. Even
after that, Struts seems to be setting into an instance that isn't what is
in the action class.

As usual, this behaviour is just happening for es_CL locale on my browser
and not when the browser locale is  en_US.

Any help is much appreciated.

-- 
Regards
Sundar S.

Reply via email to