For this to work, 'b' would have to be the name of a java.util.Map object; instead, it is a BolgeDTO. Use the second method discussed in the <html:link/> documentation:

"Specify both name and property attributes - The specified property

   getter method will be called on the bean identified by the name (and
   optional scope) attributes, in order to return the java.util.Map
   containing the parameters."

So, if you created a getMap() method on BolgeDTO, the following would work:

                         <html:link action="edit"
                                 name="b" property="map">
                                 Düzenle
                         </html:link>

-- Jeff

M. Onur Tokan wrote:
hi,

I have a arraylist of BolgeDTO in request scope. I am iterating this
arraylist in the code below. The problem is I want to add a "edit"
button on the column. And I want to pass the whole properties to the
next form so The form will contain the data from the selected row. I
look at the html:link doc. It says that:

"If you prefer to specify a java.util.Map that contains all of the
request parameters to be added to the hyperlink, use one of the
following techniques:Specify only the name attribute - The named JSP
bean (optionally scoped by the value of the scope attribute) must
identify a java.util.Map containing the parameters."

I tried this method by adding a Map property to the DTO and set it
from its constructor. But it didn't work. Any suggestions please?

<logic:iterate id="b" name="bolgeler">
        <tr>
                <td>
                        <bean:write name="b" property="bolge"/>
                </td>
                <td>
                        <bean:write name="b" property="bolge_kodu_s"/>
                </td>
                <td>
                        <bean:write name="b" property="bolge_kodu_t"/>
                </td>
                <td>
                        <bean:write name="b" property="bolge_adi"/>
                </td>
                <td>
                        <html:link action="edit"
                                name="b">
                                Düzenle
                        </html:link>
                </td>
        </tr>
</logic:iterate>
--
Regards,
M. Onur Tokan




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

Reply via email to