Probably by using the following URL:
OK, I googled it and DEFINITELY that's how to do it. It's the common way to add parameters to
JDBC connections, so no big surprise.
Although using the DriverManager to get database connections is NOT recommended in web applications. It's better to set up a Tomcat connection pool and use that, instead. The URL is the same in either case.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.