Java tag library for component templates.  Define the template , give the query and pass parameters.