{
DbManager dbManager;
QueryBuilder builder;
RunnableQuery query;
Connection conn;
AnyActionForm frm;
DataSource ds;
String queryName;
String redirect;
frm = (AnyActionForm)form;
queryName = frm.getString("queryname");
if (queryName == null) throw new Exception("Query not specified, please check your html form");
redirect = frm.getString("redirect");
if (redirect == null) throw new Exception("Redirect not specified, please check your html form");
if (isQueryable(frm))
{
dbManager = DbBaseAction.getDbManager();