I'm fairly new to server-side of java, so I have some noobish questions about servlets and jsp technology.
From what I can tell, most books on the subject teach something like this: you get data you need from database,and then in the bean when you want to display results you forward data to jsp page.(ex. RequestDispatcher)
And in jsp page you simply use EL and taglibs to cycle data.So, jsp page here serves as some kind of template which you fill with data. All good with that.
However, let's say I get some data from database, and want
to display each row (or something more complex) in its own jsp page. So perhaps I'll have to create on the fly 10,20..... X number of jsp pages.
So, my question would be:
1. How does one proceed with this? (so, to say,how do you dynamically create jsp pages?) And how would you track user input in this case?
2.What if I want jsp pages to be valid for certain amount of time? So, once timer expires I could make them unavailable or something else? What would be easiest way to implement timer on the server to keep track of them, and what would be best way to implement this (hopefully without external jars i.e.Quartz and such) ?
As "Jeanne Boyarsky" had already told you don't need to create different pages.
You can have a single page and show the data depending on the key passed to the page.
And to make a page unavailable after certain time again you can have a check in the page itself and display the error page if the time limit has been expired.