struts-user mailing list archives

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

THANKS VERY VERY VERY MUCH

Deepank

----- Original Message -----
From: "Jon.Ridgway" <Jon.Ridgway@upco.co.uk>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
Sent: Tuesday, September 24, 2002 8:39 PM
Subject: RE: logic : iterate is driving me mad


> Hi Deepak
>
> I can't remember the exact syntax but the Struts docs on the web mention
> that you get a key and value object when you iterate over a Map. So try:
>
> <logic:iterate id="reviewer" name="revFormTeamVO" property="reviewers" >
>  <bean:write name="reviewer" property="value.emp_name" />
>  <bean:write name="reviewer" property="value.mail_id_v" />
>  <bean:write name="reviewer" property="value.role_n" />
> </logic:iterate>
>
> Jon Ridgway
>
>
> -----Original Message-----
> From: deepank [mailto:deepank@sasken.com]
> Sent: 24 September 2002 16:09
> To: Struts Users Mailing List
> Subject: logic : iterate is driving me mad
>
> 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(PageContextImp
> l.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.ja
> va: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
>
>
>
> The contents of this email are intended only for the named addressees and
> may contain confidential and/or privileged material. If received in error
> please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
> e-mail from your system. Unauthorised review, distribution, disclosure or
> other use of this information could constitute a breach of confidence.
Your
> co-operation in this matter is greatly appreciated.
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message