Title: configurable params in server.xml and/or web.xml

I'd like to add some configurable parameters for an interceptor in server.xml.  Do you just have to write get/set methods for that variable and add the parameters as is done with JDBCRealm (below)?

     <RequestInterceptor
            className="org.apache.tomcat.request.JDBCRealm"
            debug="99"
            driverName="sun.jdbc.odbc.JdbcOdbcDriver"
            connectionURL="jdbc:odbc:TOMCAT"
            userTable="users"
            userNameCol="user_name"
            userCredCol="user_pass"
            userRoleTable="user_roles"
            roleNameCol="role_name" />
       
and then add some methods like getUserNameCol() and setUserNameCol()? 

-Vijay

Reply via email to