Calling JSP bean function on button OnClick
843835Jan 29 2003 — edited Jan 29 2003Hi-
A NewBie question....
I have a .jsp page and supporting .java bean.
I registed the bean in .jsp page using <jsp:useBean ...>
I want to fire a function defined in that bean on the click of a button which is defined in the .jsp page
So I am doing something like this... seems like not the correct way to do since it fires this script all the time, not just when the button is clicked.
<input name='click1' type='Submit' value='Click1' onClick='<% testBean.click1Clicked (); %>'/>
Thanks for your help.