JSON Date Format

2011-05-11 Thread tkofford
nerated. Thanks in advance, tkoff...@ku.edu -- View this message in context: http://struts.1045723.n5.nabble.com/JSON-Date-Format-tp4388152p4388152.html Sent from the Struts - User mailing list archive at Nabble.com. - To

Re: submit date in textfield with custom date format

2010-12-12 Thread Li Ying
Read this doc: http://struts.apache.org/2.2.1/docs/type-conversion.html From [# 3 Creating a Type Converter] to [# 6 Applying a Type Converter for an application] - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For a

Re: submit date in textfield with custom date format

2010-12-12 Thread cellterry
on registration error java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:130) at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:139) : : li wei-4 wrote: > > what is your locale asso

Re: submit date in textfield with custom date format

2010-12-06 Thread li wei
what is your locale associated with the request? if your locale's date format is defferent from "-MM-dd" , you have to customize the type conversion to make it work. http://struts.apache.org/2.2.1/docs/type-

Re: submit date in textfield with custom date format

2010-12-06 Thread Maurizio Cucchiara
I'm not sure I understand what you mean, did you get an ognl.MethodFailedException exception? 2010/12/6 cellterry : > > Dear All, > > I am using struts textfield tag with a date field with date format > "-MM-dd." > > I have seen the following link which al

submit date in textfield with custom date format

2010-12-06 Thread cellterry
Dear All, I am using struts textfield tag with a date field with date format "-MM-dd." I have seen the following link which also can display what I want. http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html http://struts.apache.org/2.x/docs/formatting-dates-and-nu

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Greg Lindholm
On Wed, Nov 4, 2009 at 2:54 PM, Siddiq Syed wrote: > > When you have a validation file like actionname-aliase-validation.xml and > you want to carryout date validation in that as other validation , there is > no direct way to do that. > Correct, this is a limitation, there currently is no way t

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Siddiq Syed
t; > >> >> > > IMHO this is unreadable and unmaintainable and should never >> > be used (even >> > > if >> > > it does work). >> > > >> > > You would be better off changing your 'date' property to be >> &

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Greg Lindholm
7;date' property to be > > a String and > > > handle validation in a validate() method using a DateFormat object. > > > > > > > > > > -- > > View this message i

RE: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Siddiq Syed
> > You would be better off changing your 'date' property to be >> a String and >> > handle validation in a validate() method using a DateFormat object. >> > >> > >> >> -- >> View this message in context: >> http://ol

RE: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Kawczynski, David
a validate() method using a DateFormat object. > > > > > > -- > View this message in context: > http://old.nabble.com/s%3Atextfield-and-date-format-as-dd-MM-y yyy-tp26197512p26202747.html > Sent from the Struts - User mailing list archive at Nabble.com. > >

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Siddiq Syed
changing your 'date' property to be a String and > handle validation in a validate() method using a DateFormat object. > > -- View this message in context: http://old.nabble.com/s%3Atextfield-and-date-format-as-dd-MM--tp26197512p

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Greg Lindholm
> > (((0[13578])|(1[02]))[\/]((0[1-9])|([12]\d)|(3[01])))|(((0[469])|(11))[\/]?((0[1-9])|([12]\d)|(30)))|((0?2)[\/]((0[1-9])|(1\d)|(2[0-8][\/](((19)|([1-9][0-9]))([\d][\d]|((0?2)[\/](29)[\/](((19)|([1-9][0-9]))(([02468][048])|([13579][26])$ > > > > IMHO this is unreadable and unma

Re: s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread Siddiq Syed
- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://old.nabble.com/s%3Atextfield-and-date-format-as-dd-MM--tp26197512p26199380

s:textfield and date format as dd/MM/yyyy

2009-11-04 Thread carl ballantyne
Hi All, I have a Person object with a birthday attribute which is a Date. In the form I have a textfield to enter the value. I want the field to display the date in the format dd/MM/ and the validation to apply using that format. However everything I am trying does not work. I tried p

Re: How to set global date format?

2008-10-21 Thread Suyog Doshi
Hi I am facing same problem Do you got any solution for same? Struts2 Fan wrote: > > Hi all, > > I want to set a global date format. Is it possible? I defined > format.date={0,date,dd.MM.} in package.properties file, but it does > not work. > > Any ideas? >

Re: How to set global date format?

2008-09-20 Thread Dave Newton
default date conversion uses your current locale. I don't think it has a simple way of setting the date format, either (might be a good idea). I'd poke around conversion-related stuff first, but if I didn't find anything right away I'd probably just write a converter that di

Re: How to set global date format?

2008-09-20 Thread Struts2 Fan
> >> I am not using s:datetimepicker. I am using the s:textfield tag. In every >> browser, I want a single date format. I googled, read the documentation, >> but >> I couldn't find an answer. >> >> >> >> Struts2 Fan wrote: >> > &g

Re: [s2] Date format in TextField

2008-02-26 Thread Jeromy Evans
Petzsch, Martin wrote: How is it possible to enforce that the textfield should show the date as dd/mm/? See this page: http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html It also applies to 2.0.x - To

RE: [s2] Date format in TextField

2008-02-26 Thread Petzsch, Martin
textfield should show the date as dd/mm/? Many thanks, Martin -Original Message- From: Richard Sayre [mailto:[EMAIL PROTECTED] Sent: 26 February 2008 17:59 To: Struts Users Mailing List Subject: Re: [s2] Date format in TextField I'm not sure if I understand you correctly but...

Re: [s2] Date format in TextField

2008-02-26 Thread Richard Sayre
manually enter the date by typing. >Currently the date is displayed as dd/mm/yy > if there is a value. How can I change this to be dd/mm/? We recently has this probem. We gave the user to an option set the date format for our whole system. Now whenver we read dates out of the datab

[s2] Date format in TextField

2008-02-26 Thread Petzsch, Martin
Hi, I want to display editable dates in textfields. I cannot use JavaScript, so datetimepicker isn't an option. Currently the date is displayed as dd/mm/yy if there is a value. How can I change this to be dd/mm/? Many thanks, Martin Capgemini is a trading name used by the Capgem

Date format

2007-11-07 Thread Zoran Avtarovski
Is there a simple of way globally setting the date format for conversions. For example is there somewhere I can use set property Date.format="dd/mm/" Z. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Using default date format according to current Locale

2007-08-28 Thread Paul Benedict
exemple a Date in current user Locale. Currently I > use this method : > formatKey="format.date.short"/> > > with the adequate formatKey in my localized MessageRessources*.properties. > This works perfectly, but... > > Since I just put in these .properties default short da

Using default date format according to current Locale

2007-08-28 Thread darfy
these .properties default short date format, is there a convenient way with Struts to use Java native default date format ? (in other words, I want an output like this, where I don't manually define the format : DateFormat sdf = SimpleDateFormat.getDateInstance(SimpleDateFormat.SHO

Re: dd-MON-yyyy date format validation

2007-06-02 Thread Christopher Schultz
ache.org/1.3.8/faqs/validator.html [See "Standard Built In Validations" section] If you are using Struts 2, then you should say so. If Struts 2's date validator does not allow the user to specify the date format, then a significant loss of functionality has occurred. :(

Re: dd-MON-yyyy date format validation

2007-06-02 Thread Jeremiah Johnson
You will have to write your own custom validator or implement the validate() method on the form. Custom validator: http://www.onjava.com/pub/a/onjava/2002/12/11/jakartastruts.html?page=last Ambaris Mohanty wrote: Hi all, I'm developing a jsp form that has a date field. I want to get the dat

dd-MON-yyyy date format validation

2007-06-02 Thread Ambaris Mohanty
Hi all, I'm developing a jsp form that has a date field. I want to get the date in dd-MON- from the user. I can't validate the format using struts validation framework. Can any one help me on this? Thank you, Ambaris Mohanty

MM/YY date format within validator.xml

2005-05-24 Thread papouasied
hi, inside validator.xml, is it possible to use the MM/YY format with the date validator ? The documentation gives examples with MM/dd/ http://struts.apache.org/userGuide/dev_validator.html but not with MM/YY. I tried this: datePatternStrictMM/yy Validation is not w

RE: Date format woes

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 1:23 PM > To: 'Struts Users Mailing List' > Subject: RE: Date format woes > > > > From a pure JavaBean perspective, a cl

RE: Date format woes

2004-09-08 Thread Slattery, Tim - BLS
> From a pure JavaBean perspective, a class like: > > package com.dotech; > > import java.io.Serializable; > import java.util.Date; > > public class ConfusedBean implements Serializable { > public void setDate(String s) {} > public Date getDate() { return null; } > } > > is seen by Intr

RE: Date format woes

2004-09-08 Thread Kris Schneider
>From a pure JavaBean perspective, a class like: package com.dotech; import java.io.Serializable; import java.util.Date; public class ConfusedBean implements Serializable { public void setDate(String s) {} public Date getDate() { return null; } } is seen by Introspector as (Sun JDK 1.4.

RE: Date format woes

2004-09-08 Thread Slattery, Tim - BLS
> You wouldn't happen to have another setter method that > accepts a different type (e.g. Date) would you? > > for example: > > ... > ... > > public void setExpirationDate(Date expirationDate){ > > ... > ... No, only what I posted. -- Tim Slattery [EMAIL PROTECTED] --

RE: Date format woes

2004-09-08 Thread Jim Barrows
> -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 12:46 PM > To: Struts Users Mailing List > Subject: Re: Date format woes > > > You wouldn't happen to have another setter method that > accep

Re: Date format woes

2004-09-08 Thread James Mitchell
tchtx - Original Message - From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 08, 2004 3:39 PM Subject: Date format woes > I've got a page in my Struts web app that displays a date. It uses > to read a dat

Date format woes

2004-09-08 Thread Slattery, Tim - BLS
I've got a page in my Struts web app that displays a date. It uses to read a date from the form bean and format it for display. I also want to put that date into a field so that it can be reloaded when the page is submitted and redisplayed. The getter returns a Date. The tag retrieves also retr

Re: Date format.

2004-04-30 Thread Hubert Rabago
Use a String for the form's fields (be it Date, int, double, whatever). Format the data before it's shown and parse it upon submission. --- "Inamdar, Anil - Cons" <[EMAIL PROTECTED]> wrote: > Hello, > I have a getter and setter on a Date field in my Action form. > When I display the field strut

RE: Date format.

2004-04-30 Thread Slattery, Tim - BLS
> I have a getter and setter on a Date field in my Action form. > When I display the field struts seems to call toString on the > object. Is there a way I can control the formatting on the > Date object thanks Anil Yes! Use the JSTL tag. -- Tim Slattery [EMAIL PROTECTED] --

Date format.

2004-04-30 Thread Inamdar, Anil - Cons
Hello, I have a getter and setter on a Date field in my Action form. When I display the field struts seems to call toString on the object. Is there a way I can control the formatting on the Date object thanks Anil - To unsubscri