This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Java Class - JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Java Class - JSP" Watch "Java Class - JSP" New topic

Java Class - JSP

Mini Ramachandran

Joined: Jan 11, 2001
Posts: 17
I have written a Java class with connection pooling; It simply executes a query and displays a resultset. How do I call it from JSP?(not as a bean, but just the class). I need to look at some examples of this type. Any links/books?.
Any or all help is appreciated.
triveni sangam

Joined: Jan 12, 2001
Posts: 11
U can instantiate the class in the JSp, import if it is in another package and call the methods of the class directly in the scriptlet.
It is sorta covered in the JavaRanch Style Guide.
subject: Java Class - JSP
Similar Threads
jsp stuck at compiling port listening program.
Compiling jsp
setting up a jsp page that imports a java class under tomcat
JSP and UrlConnection