For a school assignment I have to make a connection to a database from a JSP page using a Java bean, which works so far.
Everytime I press this button I want to call a method in my bean..
<INPUT TYPE=SUBMIT VALUE="To DB!" OnClick="<% DBbean.InsertStatement(); %>" style="width:100%; height:50px ">
Only this doesn’t work.. does anyone have an idea how i can solve this?
Thanks in advance.
I have some advice:
If you must, use JSTL
<sql>tags or#includethe bean of your choice and call its methods. But I wouldn’t recommend it.