Hi! I am creating a JSP application. In that I want to put advertisements on every page. For that I want something that help me put advertisements on every page dynamically based on the priority of the advertisement. So if an advertisement has a priority of 10, it must be displayed more times than the one with priority of 1.
What I want to know is how to implement this. Should I use include directive or create a custom tag. Whichever I use, how can I implement the priority functionality. Advertisement's related information will be stored in a database and can be changed i.e. advertisements can be added or deleted. Will I need to add an extra column in the database for this..