struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wesslan" <forum-subscri...@wesslan.se>
Subject RE: STRUTS 2 . Populating values in Action
Date Wed, 06 Dec 2006 13:22:10 GMT
"Webwork in action" have a 20-page chapter on Type conversion. 

-----Original Message-----
From: Andrew Stepanenko [mailto:andrew.stepanenko@gmail.com] 
Sent: den 6 december 2006 14:13
To: Struts Users Mailing List
Subject: Re: STRUTS 2 . Populating values in Action

Hello,

there is also a lot of posts on Type Conversion subject in the WebWork
forum:
http://forums.opensymphony.com/forum.jspa?forumID=1
AFAIK, type conversion belongs to XWork which WebWork and Struts2 use, so
you may find the answer in WW forum too.

Regards,
Andrew

On 12/6/06, Juan Espinosa <pcexplorer@adinet.com.uy> wrote:
> Yes i see this but its hard to understand....maybe if you know 
> something that i can read...
>
> Helpppp!!!
>
>
> -----Mensaje original-----
> De: Andrew Stepanenko [mailto:andrew.stepanenko@gmail.com]
> Enviado el: MiƩrcoles, 06 de Diciembre de 2006 09:38 a.m.
> Para: Struts Users Mailing List
> Asunto: Re: STRUTS 2 . Populating values in Action
>
> Hello,
>
> have you looked at Type Conversion mechanism:
> http://cwiki.apache.org/WW/type-conversion.html ?
>
> Regards,
> Andrew Stepanenko,
> http://unf.tane.edu.ua
>
> On 12/6/06, Juan Espinosa <pcexplorer@adinet.com.uy> wrote:
> > Hi to all, i have a cuestion about populatin values in an action. I 
> > have an action that implements the interface ModelDriven. The object 
> > CUSTOMER has some string properties and a collection of users
> >
> > class MyAction implements ModelDriven{
> >
> >     Customer customer = null
> >
> >     public Object getModel(){
> >         return new Customer();
> >     }
> >
> > }
> >
> > And a form with some text boxes
> >
> > <s:textbox name="age"/>
> > <s:textbox name="address"/>
> > <s:textbox name="users(0).userName"/> <s:textbox 
> > name="users(0).password"/>
> >
> > The problem that im having is that i want to populate a user in the 
> > collection of users, like the framework populates the value string i 
> > want also populate in the collection a object of type User with the 
> > values userName and password in it....
> >
> > Anyone knows how to populate this kinds of values.....
> >
> > Regards,
> >
> >     Juan
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date:
> > 05/12/2006
> > 04:07 p.m.
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 
> 05/12/2006
> 04:07 p.m.
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 
> 05/12/2006
> 04:07 p.m.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message