[opencms-dev] JSTL Connection

Carl-Erik Herheim carl-erik.herheim at nsd.uib.no
Mon Mar 28 09:13:38 CEST 2011


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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110328/97686017/attachment.htm>


More information about the opencms-dev mailing list