Thanks Dirk!
Nadia

-----Original Message-----
From: Dirk Markert [mailto:[EMAIL PROTECTED]
Sent: Monday, September 20, 2004 10:10 AM
To: Struts Users Mailing List
Subject: Re: Data_Source_Key depricated, newby question


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! <<<<<<-+ 


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


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

Reply via email to