Milton,
Puedes usar el org.apache.commons.beanutils.BeanUtils.populate metodo o crear tu
propio metodo en tu action class donde "mapeas" de string a el type que es correcto.
Solamente que tienes que ser un poco cuidadoso con los Timestamp, you uso una
conbinacion de BeanUtils popu
Esta bien gracias:
pero luego como los paso a un Bean que tiene los atributos con los tipos
de datos correctos. debido a que luego debo pasar este bean a un EJB que
tomará alguna acción.
Milton,
Lo major seria declararlos en el actionform como string.
Marcos oliva
-Original Message-
From: Milton Benavides [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 8:33 AM
To: [EMAIL PROTECTED]
Subject: Usar tipos de datos como Timestamp, BigDecimal
Deseo usar algunos
Deseo usar algunos tiops de datos como Timestamp, BigDecimal en algunos
campos. Cuál sería la mejor manera de utilizarlos estos.
1.- Crear la clase ActionForm con todos los atributos como string para
luego trasladarlos una vez validados a un Bean???
2.- Crear los atributos en el ActionForm
le is like this.
datePatternStrict
dd/MM/
How can i validate datetime field using the same procedure using
format
string "dd/MM/yy
can i validate datetime field using the same procedure using format
string "dd/MM/yyyy HH:SS" (timeStamp)?
---
Ferran Parra
[EMAIL PROTECTED]
http://www.mubimedia.com
MUBIMEDIA S.L.
C/ Mallorca, 275, 1r 2a 08008 BCN
Tel: 93 215 21 91 / Fa
Hi all,
I'm using struts validator for all dates and it works fine for simple dates.
The entry in validation.xml file is like this.
datePatternStrict
dd/MM/
How
For this to work you must have a property of type Timestamp in your Form
bean, for example dt_changed and access it normally either through
if you are displaying or
" />
if you want to create an edit box (you might not even need to use the
"value" clause, the html:t
How to associate? You have a example?
- Original Message -
From: "Otavio C. Decio" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 11:41 AM
Subject: Re: Timestamp
> You should download the
To: "Struts User" <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 9:20 AM
Subject: Timestamp
How to format a Timestamp value for print dd/MM/ using ?
--
E-Consulting® Corp.
E
How to format a Timestamp value for print dd/MM/ using ?
--
E-Consulting® Corp.
Estratégia - Tecnologia - Comunicação
www.e-consultingcorp.com.br
e fragment and it works great. However, I
noticed the "TODO:" says to let native types through. I would like to help
out on this part -- since I have a Timestamp datatype in my beans.
Now, are there any plans to make BeanUtils support setting a Timestamp
method? How would I go about
Hi everybody
I Have some problems with my update's request.
In fact, I have two transactions
First --
DBUsr old_user = this.findDBUsrByKey(in_num);
long l = old_user.jdoGetTimeStamp();
old_user.setUsrNom(in_nom);
13 matches
Mail list logo