RE: Accessing JDBC-ODBC from Struts
in the struts-config.xml there is configuration for datasources which you can use... u dont have to do anything in the action servlet... in the action class u get the connection to the object... -Original Message- From: Rodney Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 2:20 PM To: [EMAIL PROTECTED] Subject: Accessing JDBC-ODBC from Struts Hi I need some direction on how to incorporate JDBC-ODBC into my struts and where the ODBC should be stored in my application. Also how to reference that in my Action Servlet, I am a little unsure about this area, but would appreciate some feed back or documentation that will simplify my work. Thanks Rodney -- Sent through GMX FreeMail - http://www.gmx.net -- The information in this Internet email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Internet email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this Internet email are subject to the terms and conditions expressed in any applicable governing ING Barings' terms of business or client engagement letter. Visit us at www.ingbarings.com --
Re: Accessing JDBC-ODBC from Struts
Hello Rodney, Wednesday, July 25, 2001, 5:19:58 PM, you wrote: RS Hi RS I need some direction on how to incorporate JDBC-ODBC into my struts RS and where the ODBC should be stored in my application. Also how to reference RS that in my Action Servlet, I am a little unsure about this area, but would RS appreciate some feed back or documentation that will simplify my work. No problem. Open connection with ODBC-JDBC driver in Action class and perform any operations with this datasource. -- Best regards, Olegmailto:[EMAIL PROTECTED]
Re: Accessing JDBC-ODBC from Struts
One of the - more complicated - solutions is to set up Java Naming and Directory services (JNDI, see the documentation that comes with JDK1.3). Using JNDI you can hide the details of connecting to your database(s) in a DataSource object you store in the naming service. Sun provides us with a com.sun.jndi.fscontext.RefFSContextFactory class that provides a filesystem naming service. Regards, Guus - Original Message - From: Rodney Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 15:19 Subject: Accessing JDBC-ODBC from Struts Hi I need some direction on how to incorporate JDBC-ODBC into my struts and where the ODBC should be stored in my application. Also how to reference that in my Action Servlet, I am a little unsure about this area, but would appreciate some feed back or documentation that will simplify my work. Thanks Rodney -- Sent through GMX FreeMail - http://www.gmx.net