Error Occurred When Using JSP Expression Inside Struts c:forEach Tag
Joined: Nov 19, 2000
I am using the Struts framework. I have a JSP where a collection of JavaBeans are received in a request scope.
Each of the JavaBeans, which I name it as ThreadBean, has a number of properties. In the beginning of my JSP and right after the <%@ page import="org.MyOrg.MyProj.message.ThreadBean" %>, I have
I iterate through the collection using the <c:forEach ....> tag:
I have an expression in the <c:forEach .... >; tag. In that expression, I am calling the 'filter' method of another class SiteUtil.java (this class is also imported to my JSP). I have to pass one of the properties of the ThreadBean as a parameter to that 'filter' method; i.e. threadBean.getPostTopic(). And it is an error. My JSP cannot be compiled because of it.
What is the correct way of doing it?
[ June 15, 2004: Message edited by: JiaPei Jen ] [ June 15, 2004: Message edited by: JiaPei Jen ]