Hi Ashik,
I started with the same some weeks ago, but I left it unfinished cause it got rather caotic, but I definitedly will pick it up, when I have more time next week. But it will be a complete redesign.
Greatest problem I encountered was that application-design stuff (and I believe that UML,
Patterns makes a lot of sence, but I still have to learn a lot).
I would say that solution (4) is the most promising starting point. I would use XML instead of a simple flat file, because thats a more clean design basis.
Design was a little like this:
1. User starts application
2. Program takes a ArrayList (sorted) of questionIDs (based on Random Numbers). Map of questionIDs(key) with all pertinent information about the questions as ArrayList (from now on called AyrrayList_Sub)(not so structured data structure, my problem) is generated. Map is saved in HttpSession.
3. User navigates through the questions. Question-Html pages are displayed by JSP.
4. Selected answers are appended to ArrayList_Sub.
Comments???
Axel