Don't put more than one on a page.Originally posted by Srikkanth Mohanasundaram:
Hi,
How do i display a single question in a page?
To the page with the next question.If i click on next i should get the next question,so where should i redirect?
Wherever you want. The session? The database? it depends how you want to use the answers.And where should i save the user's responses?
Originally posted by John Meyers:
There are many ways to do "pagination". Do a search on google or this forum to get some good results
Originally posted by Bear Bibeault:
That will yield hundreds of thousands of results all pertaining to pagination of database records. Which is not what I think that the OP is asking about.
My confusion is still: why is the OP confused as to how not to put more on the page than intended?
[ April 30, 2007: Message edited by: Bear Bibeault ]
Originally posted by Srikkanth Mohanasundaram:
Hi everybody,
Suppose i have 30 question objects in my List.. do i need to have 30 JSP pages?
What should be the "target" of the next button? Can i send it to the same JSP, if so how should the list be accessed so that i don't repeat the questions?
(Should i delete the question object from the list once i have displayed it,Is that the way to go about it?)
Originally posted by Srikkanth Mohanasundaram:
Do i have to do the processing in the JSP?
Exactly. The test becomes:Originally posted by Srikkanth Mohanasundaram:
Then it becomes simple to get the size and compare using EL.
Don't get me started about those stupid light bulbs. |