Hello,
i hope this is the right location for my question. If not, please redirect
me. 

I have a jsp-page where at the beginning of the page i load a collection of
data from the database and put it into the session like this:

<%
        List kommunen=IbnSystem.GetKommunengruppe(request);
        session.setAttribute(IbnTokens.KOMMUNENLISTE,kommunen);
%>

Then at some point i try to iterate that collection and create a link for
every item of it:

<logic:notEmpty name="<%=IbnTokens.KOMMUNENLISTE%>" scope="session">            
                                        
        <logic:iterate id="kommune" name="<%=IbnTokens.KOMMUNENLISTE%>"
type="de.gebit.ibn.data.IbnKommune" scope="session">                            
                                                                                
        
                <tr>                                            
                        <td style="vertical-align: middle; text-align: left", 
width="640px">
                                <c:if test="<%=!kommune.getId().equals(new 
Long(99))%>">                                                                   
                                                                                
                             
                                        <html:link 
forward="<%=IbnTokens.FORWARD_SOZIALRAUMLISTE%>"
                                                paramId="kom_id" 
paramName="kommune" paramProperty="id"
                                                paramScope="session"> 
                                                <bean:write name="kommune" 
property="bezeichnung" />
                                        </html:link>
                                </c:if>
                        </td>
                </tr>
        </logic:iterate>
</logic:notEmpty>

So, for every item in the collection i print out a link with the name of the
item as the text and the event of every link is forwarded to a certain
action. Within the link-tag i set a parameter of the name "kom_id" to the
value of the property "id" of the object currently iterated. 

When i open the page i get the following message:

[ServletException in:/pages/tiles/ibr/ibrmain.jsp] No getter method for
property id of bean kommune'

But as you can see in the code of the class "IbnKommune" there is a getter
for id:

public class IbnKommune implements Serializable {
        private static final long serialVersionUID = 1L;
        private Long id;
        private String bezeichnung;
        private String kurz;
        private int art;
        private IbnMandant mandant;

        public IbnKommune() {}
                
        public Long getId() {
                return id;
        }

        public String getBezeichnung() {
                return bezeichnung;
        }
        ...
}

What is wrong here? 
Thanks for any help.
Christoph
-- 
View this message in context: 
http://www.nabble.com/Problem-with-html%3Alink-tag-tf3834146.html#a10854799
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to