Re: How to connect jsp with javabean for database connection?
Tuesday, December 25, 2001 12:57 PM
A common approach to your code would be to place your try-catch block in a static method in a class called fx. DBManager.
This static method could return a boolean on updates, and a collection on selects.
You should execute this method in the top of your jsp/or in a servlet and then use the body of the jsp to present the result in fx. html.
Your jsp's is supposed to contain a minimum of javacode.