Hi,

I think this link can help.

http://jira.opensymphony.com/browse/XW-670

Aloha,

Rafael Sobral


Milan Milanovic wrote:
> 
> I'm sorry, but I finally got what is the problem. I'm sending in this
> thread and I want people on the list know what I have find. It very bad
> that nobody from Struts team want to help with this simple problem and
> that people get stuck with their projects for weeks because of such
> things. It is not acceptable in real-world use.
>   
> 
> Jim Kiley <jhki...@summa-tech.com> wrote:
>   It is possible that sending your complete step-by-step development
> process
> as responses to yourself on the mailing list is not the most productive
> way
> to solve this problem.
> 
> On Wed, May 21, 2008 at 10:50 AM, Milan Milanovic 
> wrote:
> 
>> No, Struts 2 only support MM/dd/yyyy date format and accepts it, when I
>> change to dd.MM.yyyy I got that error:
>>
>> ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 -
>> ParametersInterceptor - [setParameters]: Unexpected Exception caught
>> setting...
>>
>> --
>> Thx.
>>
>> Milan Milanovic wrote:
>> Yes, this was the same problem with too. All dates must be in this format
>> to work: MM.dd.yyyy! How can I change this ?
>>
>> I tried with displayFormat attribute and to define it in
>> package.properties, but it doesn't work. Can this be done for complete
>> application ?
>>
>> --
>> Thx in advance, milan Milanovic
>>
>>
>> Milan Milanovic wrote:
>> The wierd thing, even if my date is wrote in dd.MM.yyyy format in
>> textfield, if I enter date in dd/MM/yyyy format then it works without
>> this
>> error ?
>>
>> What is the problem ? Maybe the same problem is with datetimepicker ?
>>
>> --
>> Thx in advance, Milan
>>
>> Milan Milanovic wrote:
>> Regarding this theme:
>> http://www.nabble.com/-Struts-2--Datetimepicker-tag-Bug--%21-td17322058.html
>>
>> I must reply in this way, because when I give reply to the message above
>> struts mailing list returns that my e-mail is SPAM?!
>>
>> No, the thing is very simple. I have in my jsp that is
>> connected to Date object in my action class, as it is shown in Struts
>> documentation, but I still got that error. No, I have set displayFormat
>> attribute like this: displayFormat="dd.MM.yyyy", and it read good from
>> my Date object in action class, but when I sumbit the form it
>> generates that ParametersException ERROR. It seems that Struts 2 doesn't
>> know
>> how to convert String value from to Date field. I tried
>> everything! Even 3 different browsers, multiple locale settings, etc.
>>
>> I now tried to do the same thing but with , in this way, I defined in
>> package.properties:
>>
>> format.date = {0,date,dd.MM.yyyy}
>>
>> and then I my .jsp page:
>>
>>
>>
>>
>>
>>
>>
>>
>> And it reads good my date (of type java.util.Date from action class)
>> field,
>> but when I submit the form I got the same error:
>>
>> ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 -
>> ParametersInterceptor - [setParameters]: Unexpected Exception caught
>> setting
>> 'date' on 'class com.myProject.test.MyAction: Error setting expression
>> 'date' with value '[Ljava.lang.String;@106121'
>>
>> I have get/set methods for date, and everything else works fine. What is
>> the problem with Date conversion in this Struts 2.0.1.11 ?
>>
>> --
>> Please help!
>>
>>
>>
>>
>>
>>
>>
>>
> 
> 
> 
> 
> -- 
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
> 
> 
>        
> 

-- 
View this message in context: 
http://www.nabble.com/-Struts-2--Date-conversion-general-bug%21-tp17369156p24526267.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to