Dear All,
I have a
java class DB.java which has
JDBC code in it. A
JSP page is accessing the java file. I used the import statement in <%@ page %> to access the Java file. Now i know we can use the useBean concept to access standalone Java file. But when using useBean how to access the methods in the Java File.
<jsp:useBean id="name" class="project.DB"/>
I want to access a method processDB in the Java File. How to access the method.
In normal import="project.*" i will create object for the class DB db = new DB() and call db.processDB(); from the original Java file.
How to call this method using useBean concept. Your suggestion is very much appreciated.
Thanks in advance,
Regards,
Raghu