yes, it's possible, you should define a tag with an attribute, say id for your tag.
in your tag class you get that attribute and then build the appropriate query and look up that id from the database. if there is a result, you can loop through the result and write them to output to be displayed in your page otherwise a message
your tag class may be extended from IterationTag or you can use SimpleTagSupport
your final tag might be something like this:
<mytag:loadDepartment id="13585" />