This post may contain a couple of questions, but since they are related I didn't want to start several threads.
I realize that when you write custom tags it would make sense to make them reusable. However, if someone is relativly quick at creating custom tags, how important is reusability when the design goal is to clean up the
JSP pages and
Servlet for a task that will be performed in several places on the web app in several JSP pages?
Also, is it a bad idea to perform actual Database access inside a custom tag? Or should the data be handed to the tag in after retrieving it from the database?
In my web app I am working on, I have some tasks that I think I would like to pull out of the JSP's and Servlets and put them in some custom tags. And as of right now, they are pretty specific tasks to this web app and I don't see myself immedialty reusing them. In fact, since I will be using this to learn how to write custom tasks, I don't see myself trying too terribly hard to make them reusable at this point in time. I just thought I would mention that as it may affect the response to my questions.
Thanks