| Author |
Struts:Websphere5.0. No getter method for property in Bean
|
Inderveer singh
Greenhorn
Joined: Feb 08, 2005
Posts: 15
|
|
The problem is that it works fine on WSAD and Websphere 5.0.0 but error at Websphere 5.0.1.2 my code is like i am also getting the same error My JSP <logic:notEmpty name="timeForm" property="measures"> <logic:iterate name="timeForm" property="measures" id="measure"> <tr> <td><bean:write name="measure" property="name" filter="true"/></td> ... </tr> </logic:iterate> </logic:notEmpty> Form code has Object getMeasures(int index) Object[] getMeasures() void setMeasures(Object[] array) void setMessuares(int index, Object value) The code works fine in WSAD or Websphere 5.0.0 The server m/c 's JDK version is 1.3, and using Websphere server 5.0.2 Their is no error in console log. the jsp page is processed and forwarded perfectly But Error on JSP page. ServletException in selctcall.do }No getter method for property measures of bean timeseriesForm Here measure is an arraylist containing Formbean value objects. Can any one give any suggestions
|
 |
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
|
|
The error says timeseriesForm but the name attribute of logic:iterate says timeForm. Perhaps you have a different tag referencing timeseriesForm that is creating the error.
|
A good workman is known by his tools.
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
I ran into a similar problem when porting from a JDK 1.3 to a JDK 1.4 environment. There is something different about the way reflection works between the two versions such that the bean utilities that Struts relies on can no longer handle overloaded methods. In your case, it's the fact that you have two methods named getMeasures that is causing the problem. If you rename one of them (e.g. getMeasure(int index)) it should fix the problem.
|
Merrill
Consultant, Sima Solutions
|
 |
 |
|
|
subject: Struts:Websphere5.0. No getter method for property in Bean
|
|
|