Hi Ben and William,
I really appreciate your advice. According your instruction, now I come up with a new idea. In my webapp, I decide to create one instructor.jsp file for the lecturer. Every time when he/she presses the submit button to upload the quiz, its content, including the system time and the later generating quiz file name, will be stored as a record in a database's table. At the time the students need to do this quiz, they will first read from the table to create the quiz JSP file, like quiz09232006.jsp, and forward to it, then test it.
William, in your reply
Much better to come up with a more general solution that does not need to recompile a JSP for each quiz. How about a custom tag or JavaBean that reads a simple script that defines the quiz?
Do you mean the reading table section in the quiz09232006.jsp file should use custom tag or JavaBean?
The quiz results should be graded usually. Now I plan to use two steps to implement it. First, using application attribute to store the correct answer in the instructor.jsp file. Second, comparing each student's answer with the attribute's value and store the result in an other database table. Is it right?
Because the number of questions in each quiz are not equal, the instructor.jsp could not be instructor.html. Right?
Correct me, if I am wrong.
Best Regards,
Ailsa Cape