I have a html table that is used on multiple jsp-pages. As it is now, every jsp-page has a copy of that table (code is copied over several jsp-pages).
What I would like to do is refactor the code, so that the same table is used on every page.
I tried to put the table in a separate jsp-page, and then do a <jsp:include ...> on it wherever I need it.
This works, but is there a better way to do it? What if I for instance would like to somehow pass in a parameter determining the size of the table? How would that be accomplished?