Hi,
First, I'd ensure that your query is correct. I note that in the INSERT statement you ran a queryForList which won't have the result you're expecting. Try using JdbcTemplate#execute* and so on instead for operations that aren't expected to return a result (except, perhaps, the keys that were updated or generated as a side effect). As the previos commenter noted,
you should also provide query parameters: e.g., "UPDATE FOO SET a =?, b = ? " would only work if you ran a jdbcTemplate call that specified values for the positional parameters (the parts with "?"), like this:
Also, to help narrow this problem down, ensure that you've got a java.sql.DataSource configured and then a JdbcTemplate and try runninng the operations seperately, in a public static void main(){ } block or
unit test. This will help you identify problems with your logic, and *then* you can integrate into your struts code as you have here.