Yeah, right now it's hard. I think the best option is to write your
own JSON result with all the custom stuff you need - JSONWriter &
JSONUtil. I'm going to refactor JSON plugin to be more extensible but
it won't happen till Struts 2.5.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl
Hello,
Let me clarify the issue I have. I would like to be able to customize
the way the JSON plugin formats the date when converting an objecto to
json. Specifically, when I'm returning a JSONResult to a client. In order
to do that I need to modify the DateFormatter used by JSONWriter so I can
Hello,
I'm using Struts 2.3.16.3. I use the json plugin to return information
to the client (browser and ios App). The problem I have is that the
dates/times are local to my server, and since I have the option to know the
client's timezone, I would like to return the date to the client converted
Hi,
I solved my problem replacing the xwork library by xwork-2.0.8-SNAPSHOT.jar.
I was necessary to download the source of this version and build it.
Aloha,
Rafael Sobral
Sparecreative wrote:
>
> I agree that date conversion is a real problem for S2, especially in multi
>
I agree that date conversion is a real problem for S2, especially in multi
lingual applications.
We¹ve had to implement our own converter which either looks for a format
value with the date string or picks up a list of default prioritised date
formats and tries each one successively until success
ined in
>> package.properties:
>>
>> format.date = {0,date,dd.MM.}
>>
>> and then I my .jsp page:
>>
>>
>>
>>
>>
>>
>>
>>
>> And it reads good my date (of type java.util.Date from action class)
>>
Hello:
I am writing a custom converter for my dates in my app. The built-in
converter populates text fields with a short date but I want MM/dd/
since this is the format users enter in dates. The date fields are also
optional in my app. That presents a problem.
Here is my customer conversion c
etParameters]: 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
>
>
>
>
> 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 c
terceptor - [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!
terceptor - [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
prob
cted 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!
Interceptor: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
rto A. Flores [mailto:[EMAIL PROTECTED] Sent: Wednesday,
April 09, 2008 7:48 AM
To: Struts Users Mailing List
Subject: Re: date conversion
Consider placing the SimpleDateFormat as a local variable (within the
method) to avoid non-thread safe operations (guaranteed by the jvm
spec).
Brad A Cupit
esday, April 09, 2008 7:48 AM
To: Struts Users Mailing List
Subject: Re: date conversion
Consider placing the SimpleDateFormat as a local variable (within the
method) to avoid non-thread safe operations (guaranteed by the jvm
spec).
Brad A Cupit wrote:
the static SimpleDateFormat (assuming this co
ity - UIS
e-mail: [EMAIL PROTECTED]
office: 225.578.4774
-Original Message-
From: Alberto A. Flores [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 09, 2008 7:48 AM
To: Struts Users Mailing List
Subject: Re: date conversion
Consider placing the SimpleDateFormat as a local variable
://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html#sy
nchronization
Brad Cupit
Louisiana State University - UIS
-Original Message-
From: Zoran Avtarovski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 7:30 PM
To: Struts Users Mailing List
Subject: Re: date conversion
Avtarovski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 7:30 PM
To: Struts Users Mailing List
Subject: Re: date conversion
We had the same issue and went with writing a new converter (shown
below).
And then created a xwork-conversion.properties file pointing to it.
Z.
private final
University - UIS
e-mail: [EMAIL PROTECTED]
office: 225.578.4774
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 12:11 PM
To: Struts Users Mailing List
Subject: date conversion
Hi
quick question, I can't find any specific mention of what I want so
gt;> >>>> static field or use it in a singleton. If you use it as an instance
>>> >> field
>>>>> >>>> on an Action you'll be safe, since Actions are created per request.
>>>>> >>>>
>>>>> >>>>
teFormat, Jakarta Commons
lang
has FastDateFormat: http://commons.apache.org/lang/
Brad Cupit
Louisiana State University - UIS
e-mail: [EMAIL PROTECTED]
office: 225.578.4774
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 12:11 PM
To: Struts Users Mai
version of SimpleDateFormat, Jakarta Commons
> lang
> >> has FastDateFormat: http://commons.apache.org/lang/
> >>
> >> Brad Cupit
> >> Louisiana State University - UIS
> >> e-mail: [EMAIL PROTECTED]
> >> office: 225.578.4774
> >>
> >&
of SimpleDateFormat, Jakarta Commons lang
has FastDateFormat: http://commons.apache.org/lang/
Brad Cupit
Louisiana State University - UIS
e-mail: [EMAIL PROTECTED]
office: 225.578.4774
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 12:11 PM
To: Stru
mmons.apache.org/lang/
>
> Brad Cupit
> Louisiana State University - UIS
> e-mail: [EMAIL PROTECTED]
> office: 225.578.4774
>
>
> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 08, 2008 12:11 PM
> To: Struts Users
dy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 12:11 PM
To: Struts Users Mailing List
Subject: date conversion
Hi
quick question, I can't find any specific mention of what I want so I assume I
have to code my own Converter.
I need a date in the ISO format -MM-DD
There is no
Hi
quick question, I can't find any specific mention of what I want so I assume I
have to code my own Converter.
I need a date in the ISO format -MM-DD
There is no converter that I can configure in the struts package, is there?
Thanks
Adam
---
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis
Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez
à la mise à jour de votre carnet d'adresses.
I would like my date property to be rendered in a defined date
format(dd/MM/).
I try to inse
27 matches
Mail list logo