• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic includes vs. duplication of data  RSS feed

Nathan Pruett
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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...)
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!