. Ajax , script.
JSF:
<script>var dbName = "#{myBean.value}";</script>
( - , , ):
<script>var dbName = "#{session.getAttribute('CONNECTION_DBNAME')}";</script>
, , JavaScript . , , -, , . / .
Now, if this is the admin console, you probably still don't want this in JavaScript, but displaying the settings is acceptable. Regardless, you probably don't need them in the session if the connection data is not specific users.
source
share