You should look up container Data Source via JNDI (and not use Struts Data Source any more)

.V

Dirk Markert wrote:
Hello Nadia,

  use org.apache.struts.Globals.DATA_SOURCE_KEY

***************************************************************

NK> Hi,

NK> I'm just starting with Struts 1.1 and am trying to set up a
NK> datasource. When I compile my class I get a worning that
NK> Action.Data_Source_Key is deprecated. Could you point me to where
NK> I can look up a newer API? All my books use DATA_SOURCE_KEY. NK> What do I use insted?
NK> Here is the line the code breaks on:


NK> dataSource=(DataSource)
NK> servlet.getServletContext.getAttribute(DATA_SOURCE_KEY);

NK> Thanks

NK> ---------------------------------------------------------------------
NK> To unsubscribe, e-mail: [EMAIL PROTECTED]
NK> For additional commands, e-mail: [EMAIL PROTECTED]



Regards,
Dirk

+------- Quality leads ---------------------------------------+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG |
| Joseph-von-Fraunhofer-Str. 20 |
| 44227 Dortmund |
+---------------------------------->>>>>>> to success! <<<<<<-+


--
Please post on Rich Internet Applications User Interface (RiA/SoA)
<http://www.portalvu.com>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to