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
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/
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
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 --
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...
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
6 matches
Mail list logo