Maybe you should consider storing survey data ( questions, possible answers, type of answers ( textbox, radio, checkbox etc.)) in your db and then, depending on which survey user wants to take, generate survey pages using one and the same JSP for all cases? In this case, you will not need to extend JspServlet and do other non-obvious things. If you are interested in this kind of solution, PM me and I'll try to explain it in more details.
Hi juggernaut, thanks for the response,
We already store all the survey data in the database, as you describe, however we don't wish to use the same JSP for all surveys. We would like addional flexibility to deal with unforeseen requirements and storing the JSPs in a location that is easy to modify seems to achieve this.
For exmple? If you want to include some additional HTML code (for more banners/images/links etc. you can store them in db too). If you want to change page layouts, you should consider using some template engine (Velocity for ex.)/