struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sash Sash <>
Subject how to get JDBC source defined in struts in another servlet
Date Fri, 20 Dec 2002 17:51:50 GMT


I would like to create a servlet that loads specific resources (puts beans into app context
to be used by jsp's and action classes) when the webapp first launches.  For this task I require
a JDBC source that is defined in the struts config file.   How can I get this datasource in
my servlet?  If I understand correctly, the action servlet initializes the datasource on startup
and is available via findDatasource().  Any suggestions?  Can I get an Action Servlet executed
once via config file?  Thanks in advance for any assistance you can provide!!!

Post your free ad now! Yahoo! Canada Personals

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message