Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 11th, 2004, 02:17 PM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default GenericDataSource vs BasicDataSource

Hi,

I have the Beginning JSP Web Development (2001) and I am trying to implement DBInitservlet on page 640.

It is suggested by the new struts library to swap GenericDataSource with
Basic DataSource.

How exactly am I to do that? I have obviously imported the commons library but for example there is no .open() function in the BasicDataSource class. Therefore the try->catch statement does not work since no SQLException is thrown. (just to compile I have removed the try catch and I have adopted the setters in order to fetch the init parameters but I dont know if it works with no .open() function)

By the way, this chapter is really excellent! I want to stick to it till the end of the example and I am stuck with this deprication.

Any help will be much appreciated,

Ioannis






Similar Threads
Thread Thread Starter Forum Replies Last Post
org.apache.strut.util.GenericDataSource elbicho JSP Basics 1 August 23rd, 2003 03:55 AM
GenericDataSource Deprecated lizethfc JSP Basics 0 June 5th, 2003 11:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.