Steve,

Let Keel take care of it for you in one of two ways.

1) Add the asset-tag as a parameter when you build the command, then use
<keel:command>.  When you get to the resultant model that is executed when the
button is clicked, you can get the asset-id back from the request parameters.

2)  Build an extra hidden input as follows:

<INPUT NAME="COMMAND_copyToCache" TYPE="SUBMIT" ID="<%=assetId%>" 
> VALUE="<<< Copy"/>
<INPUT NAME="PARAMS_copyToCache" TYPE="HIDDEN"" 
> VALUE="ID=<%=assetId%>"/>

Note the COMMAND_x, PARAMS_x usage, Keel will match those up for you and
you'll get the ID parameter back in the request.  If you have multiple rows,
just make the command name unique (maybe by tagging the asset-id on to it).

Shash

> Greetings.
> 
> Ok, I have an HTML Form, using clnt-struts.
> 
> I have a table witht a number of lines like the following;
>      <td><INPUT NAME="copyToCache" TYPE="SUBMIT" ID="<%=assetId%>" 
> VALUE="<<< Copy"/></td>
> 
> Value is what is displayed, and can't be changed due to spec.  So 
> does ANYBODY know how to figure out which Button on the table was 
> hit?  I would prefer to read the ID somehow.  Row numbers are OUT 
> for this one, I really need that assetID, as it is the key for the 
> data in the table.
> 
> Regards,
> Steve

http://keelframework.org/documentation
Keelgroup mailing list
[EMAIL PROTECTED]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com

Reply via email to