I want to create a jsp which is questionaire/survey form. the jsp page needs to be consists of Questions, answer type((radio, drop down, textbox, date)), answer options to be desplayed on the screen. All these are coming from DB including answer_type of each question. I need help in using collections and displaying this on JSP page. In Backend I am using DB2 and struts franmework.
I would recommend you start simple
- Define your model
- Display Questions on a JSP (no interactivity - just list all the questions)
- start with one type of question - maybe multi choice question via a radio button.
Once you have that working, then start adding new features - other question types etc.
There will naturally be java code involved in this web application and as Bear has pointed out, it should live in Java classes rather than your JSP.
The struts framework should help you with following the MVC architecture.