#4 Deprecated code for Struts 1.1b3

closed-fixed
nobody
None
5
2003-01-14
2003-01-12
Kenneth Stout
No

Struts 1.1b3 - Action.DATA_SOURCE_KEY is deprecated.
Files effected:
startup-application.vm,
startup-session.vm,
struts-action.vm

Fix:
add the following to the import area.
import org.apache.struts.*;

change data source to reference Globals
DataSource ds = (DataSource)
servlet.getServletContext().getAttribute(Globals.DATA_SOURCE_KEY);

Thanks,
Kenneth.

Discussion

  • Kenneth Stout
    Kenneth Stout
    2003-01-14

    • status: open --> closed-fixed