File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
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 (').
I agree. Here's the link:
subject: How to Pass Value from struts Action class to java script
passing jsp variable to java script function on same page
Struts 2 - Using onclick in a radio tag
[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-2015