A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
How to Pass Value from struts Action class to java script
Joined: Aug 18, 2009
Dec 10, 2009 16:59:05
How can we pass count value from
action class to
in actions class
<input type="submit" value="submit" onlclick="return noofcount(count);">
Joined: Sep 29, 2008
Dec 10, 2009 20:42:07
Joined: Dec 01, 2008
Dec 10, 2009 22:58:29
<input type="submit" value="submit" onlclick="return noofcount(<bean:write name="count" />);">
There is only one catch, if count is a number you can keep the above code. If count were a
value.. surround the bean:write with a pair of single quotes (').
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: How to Pass Value from struts Action class to java script
Struts 2 - Using onclick in a radio tag
passing jsp variable to java script function on same page
[solved] passing 3 times by default through action using struts 2
Onclick in struts.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014