Re: deal with nested properties
Oups, sorry now it works fine ! I use the jstl.jar and standard.jar from the struts.tar.gz But now it's oki. Merci ! Rémi Le Vendredi 1 Juillet 2005 16:00, Martin Gainty a écrit : > Rémi- > Which version JSTL are you implementing with? > Bon Chance, > Martin- > - Original Message - > From: "Dewitte Rémi" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Friday, July 01, 2005 11:36 AM > Subject: Re: deal with nested properties > > > Thanks a lot. More precisely, i must do this to get it work ! > > because gives me $ind} > > > > Le Vendredi 1 Juillet 2005 14:01, Wendy Smoak a écrit : > > From: "Dewitte Rémi" <[EMAIL PROTECTED]> > > > > > In my jsp, I try do do this : > > > > > > > > property="numChild" type="java.lang.Integer"/> > > > > > > > > > > > > > > property='<%="children["+(ind2.intValue()-1)+"].name"%>' size="30" > > > maxlength="30"/> > > > > > property='<%="children["+(ind2.intValue()-1)+"].age"%>' > > >size="30" maxlength="30"/> > > > > > > > I took out the table tags and reformatted a bit. > > > > Where are the form tags? only works inside a . > > Assuming you just left them out... > > > > I don't think this will be exactly right, but maybe it will give you an > > idea. (I don't actually use indexed properties in my projects, but I > > *think* this is how it's supposed to work... ) > > > > > > > >name: > >age: > > > > > > (I note that you added > > > > to the form in a later message, which I was going to mention is > > necessary.) > > > > Consider switching to Struts-EL and JSTL so that you're not mixing the > > 'classic' tags which have JSTL equivalents. (For example, use > > instead of if you need it.) Look in the 'contrib' > > directory for Struts-EL. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deal with nested properties
Rémi- Which version JSTL are you implementing with? Bon Chance, Martin- - Original Message - From: "Dewitte Rémi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, July 01, 2005 11:36 AM Subject: Re: deal with nested properties Thanks a lot. More precisely, i must do this to get it work ! because gives me $ind} Le Vendredi 1 Juillet 2005 14:01, Wendy Smoak a écrit : From: "Dewitte Rémi" <[EMAIL PROTECTED]> > In my jsp, I try do do this : > > property="numChild" type="java.lang.Integer"/> > > > > property='<%="children["+(ind2.intValue()-1)+"].name"%>' size="30" > maxlength="30"/> >> property='<%="children["+(ind2.intValue()-1)+"].age"%>' >size="30" maxlength="30"/> > I took out the table tags and reformatted a bit. Where are the form tags? only works inside a . Assuming you just left them out... I don't think this will be exactly right, but maybe it will give you an idea. (I don't actually use indexed properties in my projects, but I *think* this is how it's supposed to work... ) name: age: (I note that you added to the form in a later message, which I was going to mention is necessary.) Consider switching to Struts-EL and JSTL so that you're not mixing the 'classic' tags which have JSTL equivalents. (For example, use instead of if you need it.) Look in the 'contrib' directory for Struts-EL. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deal with nested properties
From: "Dewitte Rémi" <[EMAIL PROTECTED]> > Thanks a lot. More precisely, i must do this to get it work ! > > because gives me $ind} Do you have <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> at the top of the page? really should work... assuming you don't just have a typo-- your 'output' is missing the { after the $. Then again, without the taglib directive you'd probably see nothing, just the original in the HTML source. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deal with nested properties
Thanks a lot. More precisely, i must do this to get it work ! because gives me $ind} Le Vendredi 1 Juillet 2005 14:01, Wendy Smoak a écrit : > From: "Dewitte Rémi" <[EMAIL PROTECTED]> > > > In my jsp, I try do do this : > > > > > property="numChild" type="java.lang.Integer"/> > > > > > > > > > property='<%="children["+(ind2.intValue()-1)+"].name"%>' size="30" > > maxlength="30"/> > > >size="30" maxlength="30"/> > > > > I took out the table tags and reformatted a bit. > > Where are the form tags? only works inside a . > Assuming you just left them out... > > I don't think this will be exactly right, but maybe it will give you an > idea. (I don't actually use indexed properties in my projects, but I > *think* this is how it's supposed to work... ) > > > >name: >age: > > > (I note that you added > > to the form in a later message, which I was going to mention is necessary.) > > Consider switching to Struts-EL and JSTL so that you're not mixing the > 'classic' tags which have JSTL equivalents. (For example, use > instead of if you need it.) Look in the 'contrib' directory > for Struts-EL. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deal with nested properties
From: "Dewitte Rémi" <[EMAIL PROTECTED]> In my jsp, I try do do this : I took out the table tags and reformatted a bit. Where are the form tags? only works inside a . Assuming you just left them out... I don't think this will be exactly right, but maybe it will give you an idea. (I don't actually use indexed properties in my projects, but I *think* this is how it's supposed to work... ) name: age: (I note that you added to the form in a later message, which I was going to mention is necessary.) Consider switching to Struts-EL and JSTL so that you're not mixing the 'classic' tags which have JSTL equivalents. (For example, use instead of if you need it.) Look in the 'contrib' directory for Struts-EL. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deal with nested properties
Yes sorry, i have also : But it doesn't work ! Rémi Le Vendredi 1 Juillet 2005 13:29, Nitesh Naveen a écrit : > You should probably have... > > type="org.apache.struts.validator.DynaValidatorForm"> > >/> > > > > > > > HTH > Nitesh > > > -Original Message- > From: Dewitte Rémi [mailto:[EMAIL PROTECTED] > Sent: Friday, July 01, 2005 5:54 PM > To: Struts Users Mailing List > Subject: deal with nested properties > > Hi all ! > I have another problem to submit : > > Here is my bean > type="org.apache.struts.validator.DynaValidatorForm"> > >/> > > > > > > where Personne is a class of two attributes {name,age} with their getters > and > setters. > > In my jsp, I try do do this : > > type="java.lang.Integer"/> > > > > > size="30" maxlength="30"/> > size="30" maxlength="30"/> > > > > And i get this error : > No getter method for property children[0].name of bean > org.apache.struts.taglib.html.BEAN > > Following the Struts FAQ for Indexed properties, it seems it should work... > > Please tell me what I missed. > Rémi > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: deal with nested properties
You should probably have... HTH Nitesh -Original Message- From: Dewitte Rémi [mailto:[EMAIL PROTECTED] Sent: Friday, July 01, 2005 5:54 PM To: Struts Users Mailing List Subject: deal with nested properties Hi all ! I have another problem to submit : Here is my bean where Personne is a class of two attributes {name,age} with their getters and setters. In my jsp, I try do do this : And i get this error : No getter method for property children[0].name of bean org.apache.struts.taglib.html.BEAN Following the Struts FAQ for Indexed properties, it seems it should work... Please tell me what I missed. Rémi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deal with nested properties
Hi all ! I have another problem to submit : Here is my bean where Personne is a class of two attributes {name,age} with their getters and setters. In my jsp, I try do do this : And i get this error : No getter method for property children[0].name of bean org.apache.struts.taglib.html.BEAN Following the Struts FAQ for Indexed properties, it seems it should work... Please tell me what I missed. Rémi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]