Re: using struts datasource from a servlet

2003-07-01 Thread Erik Price
Richard Raquepo wrote: Another option would be to configure the DS in struts but register it with a singleton (Service Locator) that can retrieve the datasource in your data access classes. maybe you can give me some link about this? tutorials maybe? any code maybe? :p As you wish:

Re: using struts datasource from a servlet

2003-06-30 Thread Richard Raquepo
l Message - From: "Steve Raeburn" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 30, 2003 3:20 PM Subject: RE: using struts datasource from a servlet > You can either pass the datasource from your servlet/action as a me

RE: using struts datasource from a servlet

2003-06-30 Thread Steve Raeburn
uts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: using struts datasource from a servlet > > > ic... another question. > what if it's not a servlet. just a class i made wherein i call it from one > of my action or servlet > but still i will need to use struts datasour

RE : using struts datasource from a servlet

2003-06-30 Thread Nicolas Seinlet
OTECTED]> Sent: Monday, June 30, 2003 2:34 PM Subject: RE: using struts datasource from a servlet > Struts stores the datasources as servlet context attributes. > > You can access the default datasource in your servlet using - > > (DataSource) > getServletContext().getAttri

Re: using struts datasource from a servlet

2003-06-29 Thread Richard Raquepo
AIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 30, 2003 2:34 PM Subject: RE: using struts datasource from a servlet > Struts stores the datasources as servlet context attributes. > > You can access the default datasource in your serv

RE: using struts datasource from a servlet

2003-06-29 Thread Steve Raeburn
://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd Steve > -Original Message- > From: Richard Raquepo [mailto:[EMAIL PROTECTED] > Sent: June 29, 2003 11:22 PM > To: Struts Users Mailing List > Subject: using struts datasource from a servlet > > > can i call/use th

using struts datasource from a servlet

2003-06-29 Thread Richard Raquepo
can i call/use the a struts datasource in my servlet. the thing is, i have a struts app. then i created a servlet to do some specific thing. now my question is, can i use the datasource defined in my struts config file in my servlet. if so, how? example code will be very much appreciated. thank