This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Advertisements Tag  RSS feed

Posts: 9610
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..

Help of any sort will be welcome!

Ankit Garg
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!