Is it possible to use the JSTL expressons along with
Struts tags? On a
JSP page, I have a bean defined which contains a map of lists (with a Dynaform). I am able to successfully access the bean for non-struts items like the following:
<select name='sites' id='sites' >
<c:forEach items='${myBean.lists.sites}' var='siteName'>
<option value="<c:out value='${siteName}'/>"> <c:out value="${siteName}"/> </option>
</c:forEach>
</select>
However, when I try the following, I get an error:
<html:select property='sites'>
<html:options collection="${myBean.lists.sites}"/>
</html:select>
with the error stating:
Cannot find bean under name org.apache.struts.taglib.html.BEAN
Since the non-struts select works, I am wondering if something else is required to get Struts working with the JSTL expression language. I have also tried changing the options to the following:
<html:options collection="<c:out value='${myBean.lists.sites}'/>"/>
Thank you.