title: Serving Advertisements - What should the View be responsible for?
body: <p>My requirements are that Ads have a definite size, could be different media types (although I'd like to focus on Images first) and need to have their impressions tracked</p>
  
  <p>I'm using Spring-MVC and will likely have a service that will retrieve all the relevant ad information</p>
  
  <pre><code>adService.getAdsForPage("news");
  adService.getFeaturedAd("news");
  </code></pre>
  
  <p>and so on...</p>
  
  <p>My question is, what will my view be responsible for?  I need to track impressions, and I can only really think of how to do that on the server side.  But what would my view look like.</p>
  
  <p>I'd like any example code, ideas, or a link to a page that has some in depth discussion of this topic</p>