I'm not sure, maybe type conversion is the answer to your question. Have you already seen this [1]?
[1] http://struts.apache.org/2.2.1/docs/type-conversion.html Maurizio Cucchiara Il giorno 17/feb/2011 10.36, <matthieu.m...@ensam.eu> ha scritto: > My User Class came from another java library which bind User class to an Active Directory User. I would like to find a solution without modifying this java library. > > ... but If there is no solution, I will modify my User class. > > Matthieu MARC > > > -----Message d'origine----- > De : Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] > Envoyé : jeudi 17 février 2011 10:31 > À : Struts Users Mailing List > Objet : Re: Multiple field and modelDriven > > Pardon, I didn't see model driven stuff. > Have you tryied to change your address field to an array string or a simple collection? > > Maurizio Cucchiara > > Il giorno 17/feb/2011 09.07, <matthieu.m...@ensam.eu> ha scritto: >> Hi everybody, >> >> I have a class named User which contain some information about user . >> >> I have made a form in my JSP and an action which is modelDriven with >> my > User class. >> >> Public class User implements modelDriven<User>{}... >> >> My question is about multiple field with same id in my JSP. My User >> class > have a field named streetaddresses (which is linked with an active directory field of the same name). In my form, I want to put 3 input field for streetaddresses (streetaddresses line 1, streetaddresses line2 and streetaddresses line3). >> If I do this, the three field will be concatenated using comma (line1, > line2, line3) >> >> Is there a way to change the separator comma with another thing (like > \r\n) ? (line1\r\nline2\r\nline3) >> >> And will it will prepopulate the three field splitting the > getStreetAddresses field using the separator when I will want to make a form to modify informations ? >> >> Streetaddresses = line1\r\nline2\r\nline3\r\n -> streetaddresses line1 >> = > line1 -> streetaddresses line2 = line2.... >> >> Thanks >> >> Matthieu MARC >> >> ------ >> matthieu.m...@ensam.eu<mailto:matthieu.m...@ensam.eu> >> Responsable du Service Informatique >> Arts et Métiers ParisTech - Angers >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org >