• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamic includes vs. duplication of data

 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm studying for my SCWCD test by making my study sheet as a web app. My main page shows each of the test objectives. At the top of the page is are "browse" and "print" links. "browse" means each objective is a link that will take you to a new page with information on that objective. "print" shows both the objectives and the data all on the same page.

Currently, I'm doing this by having my main page and one page for each objective. I am using jsp:include tags to include each objective page in the main page. I am setting request object attributes based on request parameters and reading them in each objective page to determine if the "objective link to page" should be returned, or the "objective and info page" should be returned.

I'm not sure if this is a good way to do it, since dynamically including that many pages seems like a bad idea (as far as performance goes), but is it a good idea to have the same data duplicated all over the place? (i.e. have 2 main pages, and have a page for each objective that shows the full data... but then I might as well just be using plain HTML...)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic