See some netizens asked "can you modify the table structure of opencms, after modification how to access", the answer is "yes", opencms has its own database connection pool, in/WEB-INF/config/opencms. in the properties file, the default database connection pool name is "default". You can add your own tables to the opencms database and obtain the "database connection pool" using the following methods ":
<% @ Page import = "Java. SQL. *, org. opencms. DB. *, org. opencms. Main. *" %>
<%
Java. SQL. Connection conn = opencms. getsqlmanager (). getconnection ("default ");
// Your code
Conn. Close ();
%>
However, it seems that this may violate the original intention of opencms, but return to the "original" development mode. It is best not to use this method to solve problems that can be solved by using opencms custom types and APIs.
In the next article, we will summarize the methods of opencms custom types, hoping to help you ......
(Thank you for choosing opencms, the first blog of Chinese resources, http://blog.csdn.net/qianxuncms/. we welcome you to communicate directly with the author and make progress together. MSN: qianxuncms@hotmail.com, QQ: 9165456)