you can use one form element and have the iterate tag
go over these and then have the elementKey as a
parameter using an html:link as the last column in the
table.

The example app does a good job of using this
approach.

Sandeep
--- Nicolas_Parisé <[EMAIL PROTECTED]>
wrote:
> Hi,
> 
> I have a JSP page which display a list of elements
> from a Vector in a HTML table.
> I want to put a button in each line of my table that
> let me view the element's detail (throught my
> elementForm)
> I don't know how I can pass a specific element to my
> viewElementDetailAction which use an elementForm
> I tried to use a standard form tag like this, but it
> doesn't works
> 
> Is this the correct approach?
> 
> Thanks for any suggestions,
> 
> 
> 
> Nicolas
> 
> <table>
> <logic:iterate id="element"
> type="myPackage.elementClass"
> name="myVectorOfElementInstances">
> <tr>
> <td><bean:write name="element" property="elementKey"
> filter="true" /></td>
> <td><bean:write name="element" property="firstName"
> filter="true" /></td>
> <td><bean:write name="element" property="lastName"
> filter="true" /></td>
> <td>
> <form method="post"
> action="/viewElementDetailAction" name="elementForm"
> type="myPackage.elementForm">
> <input type="hidden" name="no" value="<bean:write
> name="element" property="elementKey" filter="true"
> />">
> <input type="submit" name="btnView" value="View"/>
> </form>
> </td>
> </tr>
> </logic:iterate>
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

Reply via email to