This problem has two parts,
First:
I have a .gif file representing a button and I will like to call a
javascript function when I click on it and pass some parameters
(dynamically) to the js function.
For example:
<%
Order myOrder = (Order)pageContext.getAttribute( "order" );
int orderNumber = myOrder.getOrderNumber();
String customer = myOrder.getCustomer();
%>
<A href="javascript:orderConfirm( '<%= orderNumber %>', '<%= customer %>',
'accept' );" >
<html:img page="/images/accept.gif"
width="72"
height="18"
border="0"
alt="Accept"/>
</A>
This code works but i'll like to konw, how do I use the <html:link> tag if
I want to call a javascript function and pass dynamic parameters to it? the
attribute "order" that I get from the page context is available from the
formBean associated to this jsp.
Thanks for the help.
Rafael
application/ms-tnef