struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "deepank" <deep...@sasken.com>
Subject logic : iterate is driving me mad
Date Tue, 24 Sep 2002 15:08:34 GMT
jsp code snippet

<logic:iterate id="reviewer" name="revFormTeamVO" property="reviewers" >
 <bean:write name="reviewer" property="emp_name" />
 <bean:write name="reviewer" property="mail_id_v" />
 <bean:write name="reviewer" property="role_n" />
 
</logic:iterate>

property reviewers is TreeMap that stores beans

i get an error 
 
javax.servlet.ServletException: No getter method for property emp_name of bean reviewer
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
	at org.apache.jsp.ReviewTeam$jsp._jspService(ReviewTeam$jsp.java:988)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja
i have getter methods for all the properties in the bean, for example
public void setEmp_name(String emp_name) {  this.emp_name = emp_name; }
 public String getEmp_name() {  return this.emp_name; }
STILL I AM GETTING THIS ERROR
IF I DO 
<logic:iterate id="reviewer" name="revFormTeamVO" property="reviewers" > <P> HELLO
WORLD!</P>
</logic:iterate>
The loop works correctly, only the getter methods give error
SOME BODY PLEASE HELP 
Deepank


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message