cause it assumes myCollectionElement as a normal java Object and says no method getId() in java.lang.Object
 
 
 
----- Original Message -----
From: troy hart
Sent: Thursday, July 05, 2001 1:36 PM
Subject: Re: html:link problem

What doesn't work with that???
----- Original Message -----
Sent: Thursday, July 05, 2001 2:25 PM
Subject: Re: html:link problem

no. this doesn't work. then i'll have to use jsp bean tag and do this.
 
is there anyother way???
 
 
----- Original Message -----
From: troy hart
Sent: Thursday, July 05, 2001 1:08 PM
Subject: Re: html:link problem

To the best of knowledge, you can't use the <bean:write> tag that way. I believe it would be:
 
<html:link page="/target.cm" paramId="value" paramName="<%= myCollectionElement.getId() %>">click here</html:link>
 
 
Hope this helps...
----- Original Message -----
Sent: Thursday, July 05, 2001 1:09 PM
Subject: html:link problem

is this correct
 
<html:link page="/target.cm" paramId="value" paramName="<bean:write name='myCollectionElement' property='id'/>">click here</html:link>
 
where myCollectionElement is a  collection
            id is a property in the collection
 
and i want  http://..../target.cm?value=2 (value of id)
 
i get null when i say
 
req.getParameter("value"); in my action class??
 
any help???
 
thanks,
rama
 
 
 
 
 

Reply via email to