You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Brett Porter <bp...@f2network.com.au> on 2001/11/27 04:34:34 UTC
RE: Problem with Iterating-No getter method for property....... A
ny Ideas?
It isn't directly related, but:
>> public void Messages()
>> {
should be
>> public Messages()
>> {
I seem to remember something about beans needing to have a public default
construtor to work. If this helps, you may also need public Message() {} in
your other class.
Good luck,
Brett
-----Original Message-----
From: antony@claire.co.jp [mailto:antony@claire.co.jp]
Sent: Tuesday, 27 November 2001 2:24 PM
To: Struts Users Mailing List
Subject: Re: Problem with Iterating-No getter method for property.......
Any Ideas?
I am still getting the same error. When I create the bean, I am using
Messages message = new Messages();
session.setAttribute("Messages", messages);
and in the jsp code I now have
<logic:iterate id="messagestag" name="Messages" property="messages"
scope="session">
Can you see what I am doing wrong?
Thanks for all the help.
Cheers
Tony