Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Creating dynamic content jsp for questionaire  RSS feed

 
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
 
Saloon Keeper
Posts: 9131
172
  • 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
 
Author and ninkuma
Marshal
Posts: 66783
168
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!
 
Bartender
Posts: 1844
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.


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!