Re: DataSource references in Business Layer

2003-03-15 Thread Dan Allen
Guido ([EMAIL PROTECTED]) wrote: > Thank you. I was searching in ActionServlet class instead of Action. > > Now the Eclipse IDE warning singal has disappear and I can sleep again :P Can you sleep for me too? I have no time for that. Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: DataSource references in Business Layer

2003-03-15 Thread Guido
Thank you. I was searching in ActionServlet class instead of Action. Now the Eclipse IDE warning singal has disappear and I can sleep again :P On Sat, 15 Mar 2003, Dan Allen wrote: } You will inherit a method from Action called getDataSource() which I } think you should look into. There is a m

Re: DataSource references in Business Layer

2003-03-15 Thread David Graham
DataSource references in Business Layer Date: Sat, 15 Mar 2003 17:22:20 +0100 (MET) Two simple questions. 1. I usally define all the datasources i need in struts-config.xml file. It is very easy, but how can I obtain a datasource reference in my business logic classes? I hate the idea of passin

Re: DataSource references in Business Layer

2003-03-15 Thread Dan Allen
You will inherit a method from Action called getDataSource() which I think you should look into. There is a method in action for just about every handler you would need, including getResources() saveMessages() saveErrors() getDataSource() etc.. Check out the API docs for Action. Dan -- - - -

DataSource references in Business Layer

2003-03-15 Thread Guido
Two simple questions. 1. I usally define all the datasources i need in struts-config.xml file. It is very easy, but how can I obtain a datasource reference in my business logic classes? I hate the idea of passing the reference to the business methods and I don't want to include all my business lo