I am using javabean and javascript in a
jsp page, and having problems passing parameters to javascript function:
-------------------------------------------------------
Problem 1:
------------------------------------
Problem 2:
This is a sample jsp page. I tried two ways(two buttons in the form) to pass a variable in the jsp page to the javascript function, none of them works.
When the first button is pushed, there's no response.
When the second button is pushed, the status bar shows "Script Error!".
Any idea? Thanks!
You need to remove the space in "on click" and "on load"