I am not sure if this started with 2.5 as I just noticed it after
changing my config file but...the order now seems significant (with the
default needing to come first)


Say I add this to dbforms-config.xml for the bookstore

  <dbconnection
            isDefault="false"
            name="junk"
            id="dummy"
    />

Then for say http://localhost:8080/bookstore/tests/testBOOKSList.jsp I
get: 

org.apache.jasper.JasperException: JDBC-Troubles:  was not able to
create connection from DbConnection = id=dummy, name=junk, jndi=false,
conClass=null, username=null, default=true
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)

Which is clearly wrong since it should use the default connection

        <db:dbform 
                        multipart="false" 
                        autoUpdate="false" 
                        followUp="/tests/testBOOKSList.jsp" 
                        maxRows="*" 
                    tableName="BOOK"
                    orderBy="BOOK_ID DESC"
                >


so why is dummy the default?  Shouldn't the connection with no id be the default???

 <dbconnection
            isDefault="false"
            name="junk"
            id="dummy"
    />


    <dbconnection
                    isPow2                                      = "true"
                    connectionProviderClass = 
"org.dbforms.conprovider.SingleConnectionProvider"
                        name      = 
"jdbc:hsqldb:$(SERVLETCONTEXT_REALPATH)/WEB-INF/db_hsqldb/bookstore"
                        isJndi    = "false"
                        conClass  = "org.hsqldb.jdbcDriver"
                        username  = "sa"
                        password  = ""
         
                />

            <dbconnection
                        id="asoexdb"
                            isPow2                                      = "true"
                            connectionProviderClass = 
"org.dbforms.conprovider.SingleConnectionProvider"
                                name   = 
"jdbc:hsqldb:$(SERVLETCONTEXT_REALPATH)/WEB-INF/db_hsqldb/bookstore"
                                isJndi = "false"
                                conClass  = "org.hsqldb.jdbcDriver"
                                username = "sa"
                                password  = ""
            />

-- 
Shawn <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to