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
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
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,
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 populate y mis
var-namedatePatternStrict/var-name
var-valuedd/MM/ /var-value
/var
/field
How can i validate datetime field using the same procedure using format
string dd/MM/ HH:SS (timeStamp
i validate datetime field using the same procedure using
format
string dd/MM/ 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 / Fax: 93 215 41
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.
fieldproperty=eventDate
depends=required,date
arg0 key=eventForm.eventDate.displayname/
var
How to format a Timestamp value for print dd/MM/ using html:text ?
--
E-Consulting® Corp.
Estratégia - Tecnologia - Comunicação
www.e-consultingcorp.com.br
]
Sent: Friday, March 15, 2002 9:20 AM
Subject: Timestamp
How to format a Timestamp value for print dd/MM/ using html:text ?
--
E-Consulting® Corp.
Estratégia - Tecnologia - Comunicação
www.e-consultingcorp.com.br
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
tdbean:write property=dt_changed //td
if you are displaying or
tdhtml:text property=dt_changed value=bean:write
property=dt_changed / //td
if you want
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 writing an extension
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);
12 matches
Mail list logo