RE: html-el:select

2003-03-17 Thread Karr, David
You said ContestForm has a categories property. Your reference in the JSP says that ContestForm has a map property, which has a categories property. Which is it? If the former, your reference would just be ${ContestForm.categories}. -Original Message- From: awc [mailto:[EMAIL

Re: html-el:select

2003-03-17 Thread awc
Sorry I should have added more info. ContestForm is DynaValidatorForm and has form-property name=categories type=java.util.Collection/ form-property name=categoryId type=java.lang.Integer/ if I try html-el:options collection=${ContestForm.categories} property=id labelProperty=categoryName/

RE: html-el:select

2003-03-17 Thread Karr, David
Ok, in that case your original syntax was correct. I don't know why it isn't working. I assume you mean by does not work that the variable appears to be empty, and not that you're getting exceptions. If I were you, I would be stepping through this code in your debugger. Set breakpoints on your

Re: html-el:select

2003-03-17 Thread awc
Thanks for the reply... I started to get this message.. ServletException in:/common/bodyText/contest/winner.jsp] Cannot find bean under name [EMAIL PROTECTED], [EMAIL PROTECTED]' I guess exception lot better than no Bean found ... I am geeting closer. The struts release is --

Re: html-el:select

2003-03-17 Thread awc
To reply to my own question if I set -- c:set var=xontent value=${ContestForm.map.categories}/ html-el:select property=categoryId size=10 html-el:options collection=xontent property=id labelProperty=categoryName/ /html-el:select This works.. .anil awc wrote: Thanks for the reply...

RE: html-el:select

2003-03-17 Thread Karr, David
Yeah, ok, now I remember. The collection attribute of the options tag is just the NAME of the bean which represents the collection. There is no way to specify an EL expression for that which represents the collection itself. This would have been a good place for Struts-EL to have a minor