You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by SE...@T-Systems.es on 2003/01/15 10:12:46 UTC
Send objects by Velocity.
Hi.
I need send an object ( myObject) with Velocity to html form and get
this object with other servlet that creates a new html form and returns a
value. How can I do it?? . The object dosen't is Array, String, hash,
Vector....., etc .
Sorry by my English
sergio
Hola
necesito enviar un objeto de un tipo creado por mi con velocity a un
html y tomarlo con otro servelet que utilizara ese objeto para generar un nuevo
html es posible hacerlo. Teniendo en cuenta que este objeto no es de tipo
string, hash array etc.
sergio
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Send objects by Velocity.
Posted by Borja MartÃn <bm...@hola.com>.
you can send it directly to the template without any problem. just put
something like this: ctx.put("myObject", myObject);
then, if you want to get for example the value returned by the method
getText(), use $myObject.text
Bye.
----- Original Message -----
From: <SE...@T-Systems.es>
To: < - *velocity-dev@jakarta.apache.org :>
Sent: Wednesday, January 15, 2003 10:12 AM
Subject: Send objects by Velocity.
Hi.
I need send an object ( myObject) with Velocity to html form and get
this object with other servlet that creates a new html form and returns a
value. How can I do it?? . The object dosen't is Array, String, hash,
Vector....., etc .
Sorry by my English
sergio
Hola
necesito enviar un objeto de un tipo creado por mi con velocity a un
html y tomarlo con otro servelet que utilizara ese objeto para generar un
nuevo
html es posible hacerlo. Teniendo en cuenta que este objeto no es de tipo
string, hash array etc.
sergio
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>