This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Java Class - JSP" Watch "Java Class - JSP" New topic
Author

Java Class - JSP

Mini Ramachandran
Greenhorn

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
Greenhorn

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Java Class - JSP
 
Similar Threads
Compiling jsp
JSP and UrlConnection
CLASS VS JSP
jsp stuck at compiling port listening program.
setting up a jsp page that imports a java class under tomcat