Originally posted by preethi venkatarangan:
Sorry about that.But we could pass the form bean value to the javascript right.I just wanted to know how to pass the formbean value to the javascript function.
No, you cannot pass the value to the JavaScript. By the time the JavaScript executes on the client, chances are the form bean, which is on the server anyways, is long gone.
What you
can do is to use the power of
JSP to write the value of the bean into the JavaScript itself.
But this cannot be construed as "passing" the value. You will merely be generating JavaScript that has the value hard-coded into it.