function setMethodNameCopy() {
var copylbl = '<fmt:message key="lbl.copy" bundle="${appbundle}"/>';

var mtd=document.getElementById("mtdID");
mtd.value = copylbl;

return;
}

JSP:

<html:hidden name="Form" property="act" styleId="mtdID"/>
<html:hidden name="Form" property="custID" styleId="custStyID"/>

<display:table name="sessionScope.Form.customers" id="custs" requestURI="PrepareAction.do" defaultsort="7" pagesize="6">
<display:column>
<html:image src="images/copy.gif" styleId="copyImgID" onclick="setMethodNameCopy();"/>
</display:column>
.....................
...................

</display:table>

When the user clicks on the image want to assign
hidden property custID to displaytags ${custs.custID }

want to pass this value to the dispatch action to copy that cust obj.

how to do this?

thanks.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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

Reply via email to