Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating dynamic content jsp for questionaire

 
Suruchi aggarwal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
screenshot.png
[Thumbnail for screenshot.png]
Jsp page screen
 
Stephan van Hulst
Bartender
Pie
Posts: 6503
83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what are you having problems with?
 
Suruchi aggarwal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for looking into it. I want to write the java code for this
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65337
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs should have no Java code in them, so which is it? So you want to so this in JSP (using JSTL and EL), or in Java?

You'll need to be specific about what you need help with. Try writing some code and let us know what problems you are having.

And remember, no Java in a JSP!
 
Stefan Evans
Bartender
Posts: 1807
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic