File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Dynamic includes vs. duplication of data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Dynamic includes vs. duplication of data" Watch "Dynamic includes vs. duplication of data" New topic
Author

Dynamic includes vs. duplication of data

Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

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...)


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic includes vs. duplication of data
 
Similar Threads
Data Entry Flow Servlet
problem with registration page
is there any guide lines for this problem ?
MVC (urgent)
how to maintain the state of checkboxes across page