This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Advertisements Tag  RSS feed

 
Ankit Garg
Sheriff
Posts: 9610
37
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!

Thanks
Ankit Garg
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!