[opencms-dev] JSTL Connection

Tony Thul TTHUL at regina.ca
Tue Mar 29 19:19:03 CEST 2011


Thanks!! That works great!
 


>>> Carl-Erik Herheim <carl-erik.herheim at nsd.uib.no> 28/Mar/2011 1:13 am >>>
Hi Tony,
I remember having some trouble figuring that out myself. If your connection is named "foo" and the name of the db variable in your jsp is "bar", you can do it like this:

<sql:setDataSource dataSource="jdbc:apache:commons:dbcp:opencms:foo" var="bar" />

- Carl-Erik Herheim


Den 20:59, skrev Tony Thul: 


Is there a way to use <sql:setDataSource... in JSTL to get a connection from the pools defined in opencms.properties?
 
Thanks!


DISCLAIMER: The information transmitted is intended only for the addressee and may contain confidential, proprietary and/or privileged material. Any unauthorized review, distribution or other use of or the taking of any action in reliance upon this information is prohibited. If you received this in error, please contact the sender and delete or destroy this message and any copies. 

DISCLAIMER: The information transmitted is intended only for the addressee and may contain confidential, proprietary and/or privileged material. Any unauthorized review, distribution or other use of or the taking of any action in reliance upon this information is prohibited. If you received this in error, please contact the sender and delete or destroy this message and any copies. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110329/74a7e7be/attachment.htm>


More information about the opencms-dev mailing list