Henner,
I moved my command from:
java.sql.Connection con =
org.dbforms.util.SqlUtil.getConnection(dbconf, "asoexdb");
To:
java.sql.Connection con =
DbFormsConfigRegistry.instance().lookup().getConnection("asoexdb"); OR
java.sql.Connection con = dbconf.getConnection("asoexdb");
But I'm getting the following exception in either case:
org.apache.jasper.JasperException: No DbConnection object configured
with name 'asoexdb'
Thanks,
Julio
-----Original Message-----
From: Henner Kollmann [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:36 AM
To: 'Julio Ortuzar O.'
Cc: [EMAIL PROTECTED]
Subject: AW: [dbforms] Halloween Edition
Hi Julio,
>
> Two things not working for me anymore with this version:
>
> Problem1:
> It seems the org.dbforms.config.SqlUtil class is now
> org.dbforms.util.SqlUtil. The problem is that the compiler is telling
> me the getConnection() method for this class is undefined. I looked at
> the class and the method is not there anymore.
getConnection has moved into the config object:
DbFormsConfigRegistry.instance().lookup().getConnection()
DbFormsConfigRegistry.instance().lookup().getConnection(String)
Because SQLUtils are helpers only...
>
> Problem2:
> I'm getting problems with a simple menu form. Take "Example 11.2.
> menu.jsp code" from the manual. I'm getting the following problem for
> that example:
> - org.apache.jasper.JasperException: No DbConnection
> object configured with name 'null'
>
Do you get this exception during building the menu page or during
pressing the goto button? I got an exception during building the menu
page - but this was not the DbConnection excception... Something wit
nullpointer exception..
Nethertheless, i corrected this and will commit soon. Thanks for bug
reporting!
Regards,
Henner
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms