Use Struts EL library:

<html_el:link href="#"
onclick="javascript:callAction('${beanValue}')">Submit</html_el:link>


or use scriptlets:

<%
String onclick = "javascript:callAction('" + beanValue + "')";
%>
<html:link href= "#" onclick= "<%=onClick%>" > Submit </html:link >



robert
  -----Original Message-----
  From: Bharat Bhushan [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 12:29 PM
  To: [EMAIL PROTECTED]
  Subject: Need Help


  Hi



              I am using struts tag library. And I want help in the
following tag.



  <html:link href= "#" onclick= "javascript:callAction( '<bean value> ' ) "
> Submit </html:link >

  In the above tag how to pass value from bean in javascript function
callAction(). And "Submit" will also be a bean variable. How to do that???



  Any help will be appreciable.



  Thanks

  Bharat




Reply via email to