You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bharat Bhushan <Bh...@KeaneIndia.Com> on 2004/06/11 18:29:18 UTC
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
RE: Need Help
Posted by Robert Taylor <rt...@mulework.com>.
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:Bharat_Bhushan@KeaneIndia.Com]
Sent: Friday, June 11, 2004 12:29 PM
To: user@struts.apache.org
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