martinc 02/01/12 13:34:18 Modified: doc/userGuide building_model.xml Log: Corrected sample code. PR: 5214 Submitted by: Dan Tomalesky Revision Changes Path 1.5 +5 -4 jakarta-struts/doc/userGuide/building_model.xml Index: building_model.xml =================================================================== RCS file: /home/cvs/jakarta-struts/doc/userGuide/building_model.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- building_model.xml 4 Nov 2001 03:07:34 -0000 1.4 +++ building_model.xml 12 Jan 2002 21:34:18 -0000 1.5 @@ -247,11 +247,12 @@ HttpServletRequest request, HttpServletResponse response) { + javax.sql.DataSource dataSource; + java.sql.Connection myConnection; + try { - javax.sql.DataSource dataSource = - servlet.findDataSource(null); - java.sql.Connection myConnection = - dataSource.getConnection(); + dataSource = servlet.findDataSource(null); + myConnection = dataSource.getConnection(); //do what you wish with myConnection } catch (SQLException sqle) {
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>