File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts:Websphere5.0. No getter method for property in Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts:Websphere5.0. No getter method for property in Bean" Watch "Struts:Websphere5.0. No getter method for property in Bean" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts:Websphere5.0. No getter method for property in Bean
 
Similar Threads
Websphere5.0.1.2 Struts
Indexed Properties with List of Strings
Struts: No getter method for property name problem
Struts 1.2.9 +text areas.
Exception thrown by getter for property