Re: Set timezone in jsonwriter for date conversion

2015-11-05 Thread Lukasz Lenart
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

Re: Set timezone in jsonwriter for date conversion

2015-11-04 Thread JOSE L MARTINEZ-AVIAL
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

Set timezone in jsonwriter for date conversion

2015-11-03 Thread JOSE L MARTINEZ-AVIAL
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

Re: [Struts 2] Date conversion general bug!

2009-07-30 Thread rsilva
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 >

Re: [Struts 2] Date conversion general bug!

2009-07-16 Thread Zoran Avtarovski
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

Re: [Struts 2] Date conversion general bug!

2009-07-16 Thread rsilva
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) >>

Date Conversion problem

2008-09-08 Thread Eric Hamacher
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

Re: [Struts 2] Date conversion general bug!

2008-05-21 Thread Milan Milanovic
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

Re: [Struts 2] Date conversion general bug!

2008-05-21 Thread Jim Kiley
> > > > > 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

Re: [Struts 2] Date conversion general bug!

2008-05-21 Thread Milan Milanovic
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!

Re: [Struts 2] Date conversion general bug!

2008-05-21 Thread Milan Milanovic
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

Re: [Struts 2] Date conversion general bug!

2008-05-21 Thread Milan Milanovic
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!

[Struts 2] Date conversion general bug!

2008-05-21 Thread Milan Milanovic
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

Re: date conversion

2008-04-09 Thread Alberto A. Flores
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

Re: date conversion

2008-04-09 Thread Adam Hardy
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

RE: date conversion

2008-04-09 Thread Brad A Cupit
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

Re: date conversion

2008-04-09 Thread Alberto A. Flores
://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

RE: date conversion

2008-04-09 Thread Brad A Cupit
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

Re: date conversion

2008-04-09 Thread Alberto A. Flores
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

Re: date conversion

2008-04-08 Thread Zoran Avtarovski
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. >>>>> >>>> >>>>> >>>>

Re: date conversion

2008-04-08 Thread Adam Hardy
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

Re: date conversion

2008-04-08 Thread Dave Newton
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 > >> > >&

Re: date conversion

2008-04-08 Thread Adam Hardy
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

RE: date conversion

2008-04-08 Thread Dave Newton
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

RE: date conversion

2008-04-08 Thread Brad A Cupit
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

date conversion

2008-04-08 Thread Adam Hardy
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 ---

date conversion with s:textfield value tag

2007-05-07 Thread meissa . sakho
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