-
1. Re: storing JSPs in database
juggernaut Mar 22, 2005 4:48 AM (in response to atomray)Hi Adam!
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.
take care,
-- juggernaut -
2. Re: storing JSPs in database
atomray Mar 22, 2005 12:57 PM (in response to atomray)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.
Adam -
3. Re: storing JSPs in database
juggernaut Mar 23, 2005 7:09 AM (in response to atomray)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.)/