Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calling JSP bean function on button OnClick

843835Jan 29 2003 — edited Jan 29 2003
Hi-

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2003
Added on Jan 29 2003
2 comments
602 views